home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1989-09-22 | 82.8 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| ZX81 Sinclair BASIC (image/sinclairBASIC)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Applause Picture (image/applausePicture)
| ext
| Unsupported |
1%
| dexvert
| bsdiff patch (other/bsdiffPatch)
| ext
| Unsupported |
1%
| dexvert
| imgdiff patch (other/imgdiffPatch)
| ext
| Unsupported |
1%
| dexvert
| MATLAB p-code (other/matlabPCode)
| ext
| Unsupported |
1%
| dexvert
| WSUS Patch Storage File (other/wsusPatchStorageFile)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Fri Sep 22 13:24:35 1989, modified Fri Sep 22 13:24:35 1989, creator 'MPS ', type ASCII, 84055 bytes "UFracApp.inc1.p" , at 0x148d7 448 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 55 46 72 61 63 41 | 70 70 2e 69 6e 63 31 2e |..UFracA|pp.inc1.|
|00000010| 70 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |p.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 01 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 01 48 57 00 | 00 01 c0 a1 40 1b 53 a1 |.....HW.|....@.S.|
|00000060| 40 1b 53 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |@.S.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 86 4d 00 00 |........|.....M..|
|00000080| 7b 20 41 75 74 6f 46 72 | 61 63 41 70 70 20 43 6f |{ AutoFr|acApp Co|
|00000090| 6c 6f 72 3a 0d 09 43 6f | 70 79 72 69 67 68 74 20 |lor:..Co|pyright |
|000000a0| 31 39 38 38 20 62 79 20 | 42 6f 62 2e 20 20 41 6c |1988 by |Bob. Al|
|000000b0| 6c 20 72 69 67 68 74 73 | 20 72 65 73 65 72 76 65 |l rights| reserve|
|000000c0| 64 2c 20 73 69 6e 63 65 | 20 42 6f 62 20 68 61 73 |d, since| Bob has|
|000000d0| 20 61 6c 6c 20 72 69 67 | 68 74 73 2e 0d 09 46 65 | all rig|hts...Fe|
|000000e0| 62 72 75 61 72 79 20 31 | 2c 20 31 39 38 38 2e 20 |bruary 1|, 1988. |
|000000f0| 0d 09 57 72 69 74 74 65 | 6e 20 62 79 20 42 6f 33 |..Writte|n by Bo3|
|00000100| 62 20 4a 6f 68 6e 73 6f | 6e 20 6f 66 20 44 65 76 |b Johnso|n of Dev|
|00000110| 65 6c 6f 70 65 72 20 54 | 65 63 68 6e 69 63 61 6c |eloper T|echnical|
|00000120| 20 53 75 70 70 6f 72 74 | 2e 20 7d 0d 09 0d 7b 20 | Support|. }...{ |
|00000130| 56 65 72 73 69 6f 6e 20 | 32 2e 30 42 33 20 66 6f |Version |2.0B3 fo|
|00000140| 72 20 4d 61 63 41 70 70 | 20 32 2e 30 20 2b 20 4f |r MacApp| 2.0 + O|
|00000150| 66 66 53 63 72 65 65 6e | 20 57 6f 72 6c 64 20 53 |ffScreen| World S|
|00000160| 75 70 70 6f 72 74 20 62 | 79 20 47 75 69 6c 6c 65 |upport b|y Guille|
|00000170| 72 6d 6f 20 4f 72 74 69 | 7a 20 30 37 2f 30 33 2f |rmo Orti|z 07/03/|
|00000180| 38 39 7d 0d 7b 20 54 6f | 20 6c 6f 6f 6b 20 66 6f |89}.{ To| look fo|
|00000190| 72 20 74 68 65 20 63 68 | 61 6e 67 65 73 20 73 65 |r the ch|anges se|
|000001a0| 61 72 63 68 20 66 6f 72 | 20 74 68 65 20 6b 65 79 |arch for| the key|
|000001b0| 77 6f 72 64 73 20 47 65 | 74 47 57 6f 72 6c 64 2c |words Ge|tGWorld,|
|000001c0| 20 4c 6f 63 6b 50 69 78 | 65 6c 73 2c 20 55 6e 6c | LockPix|els, Unl|
|000001d0| 6f 63 6b 50 69 78 73 2c | 20 4e 65 77 47 57 6f 72 |ockPixs,| NewGWor|
|000001e0| 6c 64 2c 20 0d 65 74 63 | 2e 20 54 68 65 20 6f 6e |ld, .etc|. The on|
|000001f0| 6c 79 20 70 72 6f 63 20 | 74 68 61 74 20 6e 65 65 |ly proc |that nee|
|00000200| 64 65 64 20 72 65 70 6c | 61 63 65 6d 65 6e 74 20 |ded repl|acement |
|00000210| 77 61 73 20 42 75 69 6c | 64 4f 66 66 57 6f 72 6c |was Buil|dOffWorl|
|00000220| 64 20 63 68 65 63 6b 20 | 69 74 20 75 70 21 7d 0d |d check |it up!}.|
|00000230| 0d 7b 20 54 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |.{ The f|ollowing|
|00000240| 20 69 73 20 61 20 6c 69 | 73 74 20 6f 66 20 66 65 | is a li|st of fe|
|00000250| 61 74 75 72 65 73 20 6f | 72 20 62 75 67 20 66 69 |atures o|r bug fi|
|00000260| 78 65 73 20 74 68 61 74 | 20 63 6f 75 6c 64 20 62 |xes that| could b|
|00000270| 65 20 61 64 64 65 64 20 | 74 6f 20 74 68 65 20 70 |e added |to the p|
|00000280| 72 6f 67 72 61 6d 3a 0d | 20 20 2a 2a 2a 20 43 68 |rogram:.| *** Ch|
|00000290| 65 63 6b 20 74 68 65 20 | 73 65 67 6d 65 6e 74 61 |eck the |segmenta|
|000002a0| 74 69 6f 6e 2e 0d 20 20 | 2a 2a 2a 20 4d 61 6b 65 |tion.. |*** Make|
|000002b0| 20 69 74 20 72 75 6e 20 | 63 72 61 73 68 6c 65 73 | it run |crashles|
|000002c0| 73 20 75 73 69 6e 67 20 | 74 65 6d 70 20 64 6f 63 |s using |temp doc|
|000002d0| 75 6d 65 6e 74 73 20 74 | 6f 20 73 74 6f 72 65 20 |uments t|o store |
|000002e0| 70 61 72 74 69 61 6c 20 | 66 72 61 63 74 61 6c 73 |partial |fractals|
|000002f0| 2e 0d 20 20 2a 2a 2a 20 | 55 70 64 61 74 65 73 20 |.. *** |Updates |
|00000300| 63 6f 75 6c 64 20 62 65 | 20 63 6c 65 61 6e 65 72 |could be| cleaner|
|00000310| 20 73 6f 20 6e 6f 20 70 | 61 72 74 69 61 6c 20 66 | so no p|artial f|
|00000320| 72 61 63 74 61 6c 73 20 | 61 72 65 20 64 69 73 70 |ractals |are disp|
|00000330| 6c 61 79 65 64 2e 0d 20 | 20 2a 2a 2a 20 4f 76 65 |layed.. | *** Ove|
|00000340| 72 72 69 64 65 20 77 69 | 6e 64 6f 77 2e 75 70 64 |rride wi|ndow.upd|
|00000350| 61 74 65 65 76 65 6e 74 | 20 73 6f 20 77 65 20 63 |ateevent| so we c|
|00000360| 61 6e 20 61 76 6f 69 64 | 20 74 68 65 20 45 72 61 |an avoid| the Era|
|00000370| 73 65 52 65 63 74 20 6f | 6e 20 75 70 64 61 74 65 |seRect o|n update|
|00000380| 73 2e 0d 20 20 2a 2a 2a | 20 44 72 61 77 20 73 65 |s.. ***| Draw se|
|00000390| 6c 65 63 74 69 6f 6e 20 | 72 65 63 74 20 69 6e 20 |lection |rect in |
|000003a0| 6f 66 66 73 63 72 65 65 | 6e 2c 20 63 6f 70 79 20 |offscree|n, copy |
|000003b0| 75 70 20 74 6f 20 73 63 | 72 65 65 6e 20 66 6f 72 |up to sc|reen for|
|000003c0| 20 66 6c 69 63 6b 65 72 | 20 66 72 65 65 20 73 65 | flicker| free se|
|000003d0| 6c 65 63 74 69 6f 6e 2e | 0d 20 20 2a 2a 2a 20 43 |lection.|. *** C|
|000003e0| 72 61 73 68 20 6f 6e 20 | 33 20 6d 6f 6e 69 74 6f |rash on |3 monito|
|000003f0| 72 20 73 79 73 74 65 6d | 20 64 75 72 69 6e 67 20 |r system| during |
|00000400| 77 69 6e 64 6f 77 20 64 | 72 61 67 2e 0d 20 20 2a |window d|rag.. *|
|00000410| 2a 2a 20 43 6f 75 6c 64 | 20 73 65 74 20 74 68 65 |** Could| set the|
|00000420| 20 62 79 74 65 73 20 64 | 69 72 65 63 74 6c 79 20 | bytes d|irectly |
|00000430| 69 6e 20 6f 66 66 73 63 | 72 65 65 6e 20 50 69 78 |in offsc|reen Pix|
|00000440| 4d 61 70 2c 20 73 6b 69 | 70 20 75 73 69 6e 67 20 |Map, ski|p using |
|00000450| 4d 6f 76 65 54 6f 3a 4c | 69 6e 65 2e 20 0d 20 20 |MoveTo:L|ine. . |
|00000460| 2a 2a 2a 20 43 6f 70 79 | 20 75 70 20 66 72 6f 6d |*** Copy| up from|
|00000470| 20 73 6d 61 6c 6c 20 70 | 69 63 74 75 72 65 20 75 | small p|icture u|
|00000480| 70 20 74 6f 20 62 69 67 | 20 73 63 72 65 65 6e 20 |p to big| screen |
|00000490| 67 65 74 73 20 67 61 72 | 62 61 67 65 2c 20 73 72 |gets gar|bage, sr|
|000004a0| 63 20 72 65 63 74 20 74 | 6f 6f 20 62 69 67 3f 0d |c rect t|oo big?.|
|000004b0| 20 20 2a 2a 2a 20 41 6c | 6c 6f 77 20 61 20 77 61 | *** Al|low a wa|
|000004c0| 79 20 74 6f 20 5a 6f 6f | 6d 20 69 6e 20 75 73 69 |y to Zoo|m in usi|
|000004d0| 6e 67 20 63 6f 6f 72 64 | 69 6e 61 74 65 73 2e 0d |ng coord|inates..|
|000004e0| 20 20 2a 2a 2a 20 41 6c | 6c 6f 77 20 74 68 65 20 | *** Al|low the |
|000004f0| 75 73 65 72 20 74 6f 20 | 73 65 74 20 74 68 65 20 |user to |set the |
|00000500| 63 6f 6c 6f 72 73 20 75 | 73 65 64 20 69 6e 20 64 |colors u|sed in d|
|00000510| 69 73 70 6c 61 79 2e 0d | 20 20 2a 2a 2a 20 42 69 |isplay..| *** Bi|
|00000520| 67 67 65 72 20 70 65 6e | 53 69 7a 65 20 66 6f 72 |gger pen|Size for|
|00000530| 20 66 61 73 74 2c 20 6c | 6f 2d 72 65 73 20 66 72 | fast, l|o-res fr|
|00000540| 61 63 74 61 6c 73 2e 20 | 20 41 6c 6c 6f 77 20 75 |actals. | Allow u|
|00000550| 73 65 72 20 74 6f 20 73 | 65 74 20 73 69 7a 65 20 |ser to s|et size |
|00000560| 6f 66 20 70 65 6e 2e 0d | 20 20 2a 2a 2a 20 53 6f |of pen..| *** So|
|00000570| 6d 65 20 74 68 69 6e 67 | 73 20 66 6f 72 20 74 68 |me thing|s for th|
|00000580| 65 20 72 65 61 64 65 72 | 20 74 6f 20 64 6f 20 74 |e reader| to do t|
|00000590| 6f 20 6d 6f 64 69 66 79 | 20 74 68 65 20 70 72 6f |o modify| the pro|
|000005a0| 67 72 61 6d 2e 20 0d 20 | 20 7d 0d 0d 7b 20 33 2f |gram. . | }..{ 3/|
|000005b0| 32 37 2f 38 39 3a 20 20 | 46 69 78 65 64 20 74 68 |27/89: |Fixed th|
|000005c0| 65 20 62 75 67 20 77 69 | 74 68 20 41 75 74 6f 53 |e bug wi|th AutoS|
|000005d0| 61 76 65 20 74 68 61 74 | 20 77 6f 75 6c 64 20 64 |ave that| would d|
|000005e0| 72 61 77 20 74 68 65 20 | 77 69 6e 64 6f 77 20 66 |raw the |window f|
|000005f0| 72 61 6d 65 20 69 6e 74 | 6f 0d 09 74 68 65 20 6f |rame int|o..the o|
|00000600| 66 66 73 63 72 65 65 6e | 20 70 6f 72 74 2c 20 74 |ffscreen| port, t|
|00000610| 68 65 6e 20 73 61 76 65 | 20 74 68 65 20 64 6f 63 |hen save| the doc|
|00000620| 75 6d 65 6e 74 20 74 68 | 61 74 20 77 61 79 2e 20 |ument th|at way. |
|00000630| 20 49 74 20 77 61 73 20 | 6c 65 61 76 69 6e 67 20 | It was |leaving |
|00000640| 74 68 65 20 67 44 65 76 | 69 63 65 0d 09 73 65 74 |the gDev|ice..set|
|00000650| 20 6f 66 66 73 63 72 65 | 65 6e 20 77 68 65 6e 20 | offscre|en when |
|00000660| 53 65 74 57 54 69 74 6c | 65 20 77 61 73 20 63 61 |SetWTitl|e was ca|
|00000670| 6c 6c 65 64 20 69 6e 20 | 43 61 6c 63 43 69 74 79 |lled in |CalcCity|
|00000680| 2e 20 7d 0d 0d 7b 20 57 | 68 65 72 65 20 64 6f 65 |. }..{ W|here doe|
|00000690| 73 20 69 74 20 66 69 74 | 3a 0d 09 54 68 69 73 20 |s it fit|:..This |
|000006a0| 69 73 20 61 20 73 65 72 | 69 65 73 20 6f 66 20 73 |is a ser|ies of s|
|000006b0| 61 6d 70 6c 65 20 70 72 | 6f 67 72 61 6d 73 20 66 |ample pr|ograms f|
|000006c0| 6f 72 20 74 68 6f 73 65 | 20 64 6f 69 6e 67 20 64 |or those| doing d|
|000006d0| 65 76 65 6c 6f 70 6d 65 | 6e 74 0d 09 75 73 69 6e |evelopme|nt..usin|
|000006e0| 67 20 43 6f 6c 6f 72 20 | 51 75 69 63 6b 44 72 61 |g Color |QuickDra|
|000006f0| 77 2e 20 20 53 69 6e 63 | 65 20 74 68 65 20 77 68 |w. Sinc|e the wh|
|00000700| 6f 6c 65 20 63 6f 6c 6f | 72 20 70 72 6f 62 6c 65 |ole colo|r proble|
|00000710| 6d 20 64 65 70 65 6e 64 | 73 0d 09 75 70 6f 6e 20 |m depend|s..upon |
|00000720| 74 68 65 20 65 78 61 63 | 74 20 65 66 66 65 63 74 |the exac|t effect|
|00000730| 20 64 65 73 69 72 65 64 | 2c 20 74 68 65 72 65 20 | desired|, there |
|00000740| 61 72 65 20 61 20 6e 75 | 6d 62 65 72 20 6f 66 20 |are a nu|mber of |
|00000750| 61 6e 73 77 65 72 73 0d | 09 74 6f 20 68 6f 77 20 |answers.|.to how |
|00000760| 74 6f 20 75 73 65 20 63 | 6f 6c 6f 72 73 2c 20 66 |to use c|olors, f|
|00000770| 72 6f 6d 20 74 68 65 20 | 73 69 6d 70 6c 65 20 74 |rom the |simple t|
|00000780| 6f 20 74 68 65 20 72 61 | 64 69 63 61 6c 6c 79 20 |o the ra|dically |
|00000790| 63 6f 6d 70 6c 65 78 2e | 0d 09 54 68 65 73 65 20 |complex.|..These |
|000007a0| 70 72 6f 67 72 61 6d 73 | 20 74 72 79 20 74 6f 20 |programs| try to |
|000007b0| 63 6f 76 65 72 20 74 68 | 65 20 67 61 6d 75 74 2c |cover th|e gamut,|
|000007c0| 20 73 6f 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 75 | so you |should u|
|000007d0| 73 65 20 0d 09 77 68 69 | 63 68 20 65 76 65 72 20 |se ..whi|ch ever |
|000007e0| 73 65 65 6d 73 20 61 70 | 70 72 6f 70 72 69 61 74 |seems ap|propriat|
|000007f0| 65 2e 20 20 49 6e 20 6d | 6f 73 74 20 63 61 73 65 |e. In m|ost case|
|00000800| 73 2c 20 75 73 65 20 74 | 68 65 20 73 69 6d 70 6c |s, use t|he simpl|
|00000810| 65 73 74 0d 09 6f 6e 65 | 20 74 68 61 74 20 77 69 |est..one| that wi|
|00000820| 6c 6c 20 67 69 76 65 20 | 74 68 65 20 64 65 73 69 |ll give |the desi|
|00000830| 72 65 64 20 72 65 73 75 | 6c 74 73 2e 20 20 54 68 |red resu|lts. Th|
|00000840| 65 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 0d |e compat|ibility.|
|00000850| 09 72 61 74 69 6e 67 20 | 69 73 20 66 72 6f 6d 20 |.rating |is from |
|00000860| 30 2e 2e 39 20 77 68 65 | 72 65 20 6c 6f 77 20 69 |0..9 whe|re low i|
|00000870| 73 20 62 65 74 74 65 72 | 2e 20 20 54 68 65 20 6d |s better|. The m|
|00000880| 6f 72 65 20 6b 6e 6f 77 | 6e 20 72 69 73 6b 73 20 |ore know|n risks |
|00000890| 0d 09 74 68 65 72 65 20 | 61 72 65 20 74 68 65 20 |..there |are the |
|000008a0| 68 69 67 68 65 72 20 74 | 68 65 20 72 61 74 69 6e |higher t|he ratin|
|000008b0| 67 2e 0d 09 0d 09 0d 09 | 54 68 65 20 70 72 6f 67 |g.......|The prog|
|000008c0| 72 61 6d 73 20 28 69 6e | 20 6f 72 64 65 72 20 6f |rams (in| order o|
|000008d0| 66 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 29 |f compat|ibility)|
|000008e0| 3a 0d 09 0d 09 09 53 69 | 6c 6c 79 42 61 6c 6c 73 |:.....Si|llyBalls|
|000008f0| 3a 0d 09 09 09 54 68 69 | 73 20 69 73 20 74 68 65 |:....Thi|s is the|
|00000900| 20 73 69 6d 70 6c 65 73 | 74 20 75 73 65 20 6f 66 | simples|t use of|
|00000910| 20 43 6f 6c 6f 72 20 51 | 75 69 63 6b 44 72 61 77 | Color Q|uickDraw|
|00000920| 2c 20 61 6e 64 20 64 6f | 65 73 0d 09 09 09 6e 6f |, and do|es....no|
|00000930| 74 20 75 73 65 20 74 68 | 65 20 50 61 6c 65 74 74 |t use th|e Palett|
|00000940| 65 20 4d 61 6e 61 67 65 | 72 2e 20 20 49 74 20 64 |e Manage|r. It d|
|00000950| 72 61 77 73 20 72 61 6e | 64 6f 6d 6c 79 20 63 6f |raws ran|domly co|
|00000960| 6c 6f 72 65 64 0d 09 09 | 09 62 61 6c 6c 73 20 69 |lored...|.balls i|
|00000970| 6e 20 61 20 63 6f 6c 6f | 72 20 77 69 6e 64 6f 77 |n a colo|r window|
|00000980| 2e 20 20 54 68 69 73 20 | 69 73 20 69 6e 74 65 6e |. This |is inten|
|00000990| 64 65 64 20 74 6f 20 67 | 69 76 65 20 79 6f 75 0d |ded to g|ive you.|
|000009a0| 09 09 09 74 68 65 20 61 | 62 73 6f 6c 75 74 65 20 |...the a|bsolute |
|000009b0| 6d 69 6e 69 6d 75 6d 20 | 72 65 71 75 69 72 65 64 |minimum |required|
|000009c0| 20 74 6f 20 67 65 74 20 | 63 6f 6c 6f 72 20 6f 6e | to get |color on|
|000009d0| 20 74 68 65 20 73 63 72 | 65 65 6e 2e 0d 09 09 09 | the scr|een.....|
|000009e0| 57 72 69 74 74 65 6e 20 | 69 6e 20 73 74 72 61 69 |Written |in strai|
|000009f0| 67 68 74 20 50 61 73 63 | 61 6c 20 63 6f 64 65 2e |ght Pasc|al code.|
|00000a00| 0d 09 09 09 43 6f 6d 70 | 61 74 69 62 69 6c 69 74 |....Comp|atibilit|
|00000a10| 79 20 72 61 74 69 6e 67 | 20 3d 20 30 2c 20 6e 6f |y rating| = 0, no|
|00000a20| 20 6b 6e 6f 77 6e 20 72 | 69 73 6b 73 2e 0d 09 09 | known r|isks....|
|00000a30| 0d 09 09 46 72 61 63 41 | 70 70 50 61 6c 65 74 74 |...FracA|ppPalett|
|00000a40| 65 3a 09 28 2a 2a 2a 29 | 0d 09 09 09 54 68 69 73 |e:.(***)|....This|
|00000a50| 20 69 73 20 61 20 76 65 | 72 73 69 6f 6e 20 6f 66 | is a ve|rsion of|
|00000a60| 20 46 72 61 63 41 70 70 | 20 74 68 61 74 20 75 73 | FracApp| that us|
|00000a70| 65 73 20 6f 6e 6c 79 20 | 74 68 65 20 50 61 6c 65 |es only |the Pale|
|00000a80| 74 74 65 0d 09 09 09 4d | 61 6e 61 67 65 72 2e 20 |tte....M|anager. |
|00000a90| 20 49 74 20 64 6f 65 73 | 20 6e 6f 74 20 73 75 70 | It does| not sup|
|00000aa0| 70 6f 72 74 20 63 6f 6c | 6f 72 20 74 61 62 6c 65 |port col|or table|
|00000ab0| 20 61 6e 69 6d 61 74 69 | 6f 6e 0d 09 09 09 73 69 | animati|on....si|
|00000ac0| 6e 63 65 20 74 68 61 74 | 20 70 61 72 74 20 6f 66 |nce that| part of|
|00000ad0| 20 74 68 65 20 50 61 6c | 65 74 74 65 20 4d 61 6e | the Pal|ette Man|
|00000ae0| 61 67 65 72 20 69 73 20 | 6e 6f 74 20 73 75 66 66 |ager is |not suff|
|00000af0| 69 63 69 65 6e 74 2e 0d | 09 09 09 54 68 65 20 70 |icient..|...The p|
|00000b00| 72 6f 67 72 61 6d 20 64 | 65 6d 6f 6e 73 74 72 61 |rogram d|emonstra|
|00000b10| 74 65 73 20 61 20 66 75 | 6c 6c 20 63 6f 6c 6f 72 |tes a fu|ll color|
|00000b20| 20 70 61 6c 65 74 74 65 | 20 74 68 61 74 20 69 73 | palette| that is|
|00000b30| 0d 09 09 09 75 73 65 64 | 20 74 6f 20 64 69 73 70 |....used| to disp|
|00000b40| 6c 61 79 20 74 68 65 20 | 4d 61 6e 64 65 6c 62 72 |lay the |Mandelbr|
|00000b50| 6f 74 20 73 65 74 2e 20 | 20 49 74 20 75 73 65 73 |ot set. | It uses|
|00000b60| 20 61 6e 20 6f 66 66 73 | 63 72 65 65 6e 0d 09 09 | an offs|creen...|
|00000b70| 09 67 44 65 76 69 63 65 | 20 77 2f 20 50 6f 72 74 |.gDevice| w/ Port|
|00000b80| 20 74 6f 20 68 61 6e 64 | 6c 65 20 74 68 65 20 64 | to hand|le the d|
|00000b90| 61 74 61 2c 20 75 73 69 | 6e 67 20 43 6f 70 79 42 |ata, usi|ng CopyB|
|00000ba0| 69 74 73 20 74 6f 0d 09 | 09 09 64 72 61 77 20 74 |its to..|..draw t|
|00000bb0| 6f 20 74 68 65 20 77 69 | 6e 64 6f 77 2e 20 20 54 |o the wi|ndow. T|
|00000bc0| 68 65 20 50 61 6c 65 74 | 74 65 20 69 73 20 61 75 |he Palet|te is au|
|00000bd0| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 0d 09 09 09 |tomatica|lly ....|
|00000be0| 61 73 73 6f 63 69 61 74 | 65 64 20 77 69 74 68 20 |associat|ed with |
|00000bf0| 65 61 63 68 20 77 69 6e | 64 6f 77 2e 20 20 54 68 |each win|dow. Th|
|00000c00| 65 20 50 49 43 54 20 66 | 69 6c 65 73 20 61 72 65 |e PICT f|iles are|
|00000c10| 20 72 65 61 64 0d 09 09 | 09 61 6e 64 20 77 72 69 | read...|.and wri|
|00000c20| 74 74 65 6e 20 75 73 69 | 6e 67 20 74 68 65 20 62 |tten usi|ng the b|
|00000c30| 6f 74 74 6c 65 6e 65 63 | 6b 73 2c 20 74 6f 20 73 |ottlenec|ks, to s|
|00000c40| 61 76 65 20 6f 6e 20 6d | 65 6d 6f 72 79 0d 09 09 |ave on m|emory...|
|00000c50| 09 75 73 65 61 67 65 2e | 0d 09 09 09 57 72 69 74 |.useage.|....Writ|
|00000c60| 74 65 6e 20 69 6e 20 4d | 61 63 41 70 70 20 4f 62 |ten in M|acApp Ob|
|00000c70| 6a 65 63 74 20 50 61 73 | 63 61 6c 20 63 6f 64 65 |ject Pas|cal code|
|00000c80| 2e 0d 09 09 09 43 6f 6d | 70 61 74 69 62 69 6c 69 |.....Com|patibili|
|00000c90| 74 79 20 72 61 74 69 6e | 67 20 3d 20 30 2c 20 6e |ty ratin|g = 0, n|
|00000ca0| 6f 20 6b 6e 6f 77 6e 20 | 72 69 73 6b 73 2e 0d 09 |o known |risks...|
|00000cb0| 09 0d 09 09 54 75 62 65 | 54 65 73 74 3a 0d 09 09 |....Tube|Test:...|
|00000cc0| 09 54 68 69 73 20 69 73 | 20 61 20 73 6d 61 6c 6c |.This is| a small|
|00000cd0| 20 64 65 6d 6f 20 70 72 | 6f 67 72 61 6d 20 74 68 | demo pr|ogram th|
|00000ce0| 61 74 20 64 65 6d 6f 6e | 73 74 72 61 74 65 73 20 |at demon|strates |
|00000cf0| 75 73 69 6e 67 20 74 68 | 65 0d 09 09 09 50 61 6c |using th|e....Pal|
|00000d00| 65 74 74 65 20 4d 61 6e | 61 67 65 72 20 66 6f 72 |ette Man|ager for|
|00000d10| 20 63 6f 6c 6f 72 20 74 | 61 62 6c 65 20 61 6e 69 | color t|able ani|
|00000d20| 6d 61 74 69 6f 6e 2e 20 | 20 49 74 20 75 73 65 73 |mation. | It uses|
|00000d30| 20 61 20 0d 09 09 09 63 | 6f 6c 6f 72 20 70 61 6c | a ....c|olor pal|
|00000d40| 65 74 74 65 20 77 69 74 | 68 20 61 6e 69 6d 61 74 |ette wit|h animat|
|00000d50| 69 6e 67 20 65 6e 74 72 | 69 65 73 2c 20 61 6e 64 |ing entr|ies, and|
|00000d60| 20 64 72 61 77 73 20 75 | 73 69 6e 67 20 74 68 65 | draws u|sing the|
|00000d70| 0d 09 09 09 50 61 6c 65 | 74 74 65 20 4d 61 6e 61 |....Pale|tte Mana|
|00000d80| 67 65 72 2e 20 20 54 68 | 65 72 65 20 61 72 65 20 |ger. Th|ere are |
|00000d90| 74 77 6f 20 63 69 72 63 | 6c 65 73 20 6f 66 20 61 |two circ|les of a|
|00000da0| 6e 69 6d 61 74 69 6e 67 | 20 63 6f 6c 6f 72 73 0d |nimating| colors.|
|00000db0| 09 09 09 77 68 69 63 68 | 20 67 69 76 65 73 20 61 |...which| gives a|
|00000dc0| 20 66 6c 6f 77 69 6e 67 | 20 74 75 62 65 20 65 66 | flowing| tube ef|
|00000dd0| 66 65 63 74 2e 20 20 54 | 68 69 73 20 69 73 20 61 |fect. T|his is a|
|00000de0| 20 76 61 6c 69 64 20 63 | 61 73 65 0d 09 09 09 66 | valid c|ase....f|
|00000df0| 6f 72 20 75 73 69 6e 67 | 20 74 68 65 20 61 6e 69 |or using| the ani|
|00000e00| 6d 61 74 69 6e 67 20 63 | 6f 6c 6f 72 73 20 61 73 |mating c|olors as|
|00000e10| 70 65 63 74 20 6f 66 20 | 74 68 65 20 50 61 6c 65 |pect of |the Pale|
|00000e20| 74 74 65 20 4d 61 6e 61 | 67 65 72 2c 0d 09 09 09 |tte Mana|ger,....|
|00000e30| 73 69 6e 63 65 20 74 68 | 65 20 69 6d 61 67 65 20 |since th|e image |
|00000e40| 69 73 20 62 65 69 6e 67 | 20 64 72 61 77 6e 20 64 |is being| drawn d|
|00000e50| 69 72 65 63 74 6c 79 2e | 0d 09 09 09 57 72 69 74 |irectly.|....Writ|
|00000e60| 74 65 6e 20 69 6e 20 73 | 74 72 61 69 67 68 74 20 |ten in s|traight |
|00000e70| 50 61 73 63 61 6c 20 63 | 6f 64 65 2e 0d 09 09 09 |Pascal c|ode.....|
|00000e80| 43 6f 6d 70 61 74 69 62 | 69 6c 69 74 79 20 72 61 |Compatib|ility ra|
|00000e90| 74 69 6e 67 20 3d 20 30 | 2c 20 6e 6f 20 6b 6e 6f |ting = 0|, no kno|
|00000ea0| 77 6e 20 72 69 73 6b 73 | 2e 0d 09 09 0d 09 09 46 |wn risks|.......F|
|00000eb0| 72 61 63 41 70 70 3a 0d | 09 09 09 54 68 69 73 20 |racApp:.|...This |
|00000ec0| 69 73 20 74 68 65 20 d4 | 63 6f 6d 6d 65 72 63 69 |is the .|commerci|
|00000ed0| 61 6c 20 71 75 61 6c 69 | 74 79 d5 20 76 65 72 73 |al quali|ty. vers|
|00000ee0| 69 6f 6e 20 6f 66 20 46 | 72 61 63 41 70 70 2e 20 |ion of F|racApp. |
|00000ef0| 20 54 68 69 73 0d 09 09 | 09 76 65 72 73 69 6f 6e | This...|.version|
|00000f00| 20 73 75 70 70 6f 72 74 | 73 20 63 6f 6c 6f 72 20 | support|s color |
|00000f10| 74 61 62 6c 65 20 61 6e | 69 6d 61 74 69 6f 6e 2c |table an|imation,|
|00000f20| 20 75 73 69 6e 67 20 61 | 6e 20 6f 66 66 73 63 72 | using a|n offscr|
|00000f30| 65 65 6e 0d 09 09 09 67 | 44 65 76 69 63 65 20 77 |een....g|Device w|
|00000f40| 2f 20 50 6f 72 74 2c 20 | 61 6e 64 20 68 61 6e 64 |/ Port, |and hand|
|00000f50| 6c 65 73 20 6d 75 6c 74 | 69 70 6c 65 20 64 6f 63 |les mult|iple doc|
|00000f60| 75 6d 65 6e 74 73 2e 20 | 20 54 68 65 0d 09 09 09 |uments. | The....|
|00000f70| 43 6f 70 79 42 69 74 73 | 20 75 70 64 61 74 65 73 |CopyBits| updates|
|00000f80| 20 74 6f 20 74 68 65 20 | 73 63 72 65 65 6e 20 61 | to the |screen a|
|00000f90| 72 65 20 61 73 20 66 61 | 73 74 20 61 73 20 70 6f |re as fa|st as po|
|00000fa0| 73 73 69 62 6c 65 2e 20 | 20 54 68 65 0d 09 09 09 |ssible. | The....|
|00000fb0| 70 72 6f 67 72 61 6d 20 | 64 6f 65 73 20 6e 6f 74 |program |does not|
|00000fc0| 20 75 73 65 20 74 68 65 | 20 50 61 6c 65 74 74 65 | use the| Palette|
|00000fd0| 20 4d 61 6e 61 67 65 72 | 2c 20 65 78 63 65 70 74 | Manager|, except|
|00000fe0| 20 74 6f 0d 09 09 09 70 | 72 6f 76 69 64 65 20 66 | to....p|rovide f|
|00000ff0| 6f 72 20 74 68 65 20 73 | 79 73 74 65 6d 20 70 61 |or the s|ystem pa|
|00001000| 6c 65 74 74 65 2c 20 6f | 72 20 63 6f 6c 6f 72 20 |lette, o|r color |
|00001010| 6d 6f 64 65 73 20 77 69 | 74 68 20 6c 65 73 73 20 |modes wi|th less |
|00001020| 74 68 61 6e 0d 09 09 09 | 32 35 35 20 63 6f 6c 6f |than....|255 colo|
|00001030| 72 73 2e 20 20 46 6f 72 | 20 63 6f 6c 6f 72 20 74 |rs. For| color t|
|00001040| 61 62 6c 65 20 61 6e 69 | 6d 61 74 69 6f 6e 20 75 |able ani|mation u|
|00001050| 73 69 6e 67 20 61 6e 20 | 6f 66 66 73 63 72 65 65 |sing an |offscree|
|00001060| 6e 0d 09 09 09 67 44 65 | 76 69 63 65 20 77 2f 20 |n....gDe|vice w/ |
|00001070| 50 6f 72 74 2c 20 69 74 | 20 75 73 65 73 20 74 68 |Port, it| uses th|
|00001080| 65 20 43 6f 6c 6f 72 20 | 4d 61 6e 61 67 65 72 20 |e Color |Manager |
|00001090| 61 6e 64 20 68 61 6e 64 | 6c 65 73 20 74 68 65 0d |and hand|les the.|
|000010a0| 09 09 09 63 6f 6c 6f 72 | 73 20 69 74 73 65 6c 66 |...color|s itself|
|000010b0| 2e 20 20 53 74 72 69 63 | 74 20 63 6f 6d 70 61 74 |. Stric|t compat|
|000010c0| 69 62 69 6c 69 74 79 20 | 77 61 73 20 72 65 6c 61 |ibility |was rela|
|000010d0| 78 65 64 20 74 6f 20 61 | 6c 6c 6f 77 20 66 6f 72 |xed to a|llow for|
|000010e0| 0d 09 09 09 61 20 68 69 | 67 68 65 72 20 70 65 72 |....a hi|gher per|
|000010f0| 66 6f 72 6d 61 6e 63 65 | 20 70 72 6f 67 72 61 6d |formance| program|
|00001100| 2e 20 20 54 68 69 73 20 | 69 73 20 74 68 65 20 6d |. This |is the m|
|00001110| 6f 73 74 20 d4 72 65 61 | 6c d5 20 6f 66 20 74 68 |ost .rea|l. of th|
|00001120| 65 0d 09 09 09 73 61 6d | 70 6c 65 20 70 72 6f 67 |e....sam|ple prog|
|00001130| 72 61 6d 73 2e 0d 09 09 | 09 57 72 69 74 74 65 6e |rams....|.Written|
|00001140| 20 69 6e 20 4d 61 63 41 | 70 70 20 4f 62 6a 65 63 | in MacA|pp Objec|
|00001150| 74 20 50 61 73 63 61 6c | 20 63 6f 64 65 2e 0d 09 |t Pascal| code...|
|00001160| 09 09 43 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |..Compat|ibility |
|00001170| 72 61 74 69 6e 67 20 3d | 20 32 2e 20 20 28 6e 6f |rating =| 2. (no|
|00001180| 74 68 69 6e 67 20 77 69 | 6c 6c 20 62 72 65 61 6b |thing wi|ll break|
|00001190| 2c 20 62 75 74 20 69 74 | 20 6d 61 79 20 6e 6f 74 |, but it| may not|
|000011a0| 0d 09 09 09 09 61 6c 77 | 61 79 73 20 6c 6f 6f 6b |.....alw|ays look|
|000011b0| 20 63 6f 72 72 65 63 74 | 2e 29 0d 09 09 0d 09 09 | correct|.)......|
|000011c0| 46 72 61 63 41 70 70 33 | 30 30 3a 0d 09 09 09 54 |FracApp3|00:....T|
|000011d0| 68 69 73 20 64 6f 65 73 | 6e 27 74 20 73 75 70 70 |his does|n't supp|
|000011e0| 6f 72 74 20 63 6f 6c 6f | 72 73 2c 20 62 75 74 20 |ort colo|rs, but |
|000011f0| 64 65 6d 6f 6e 73 74 72 | 61 74 65 73 20 68 6f 77 |demonstr|ates how|
|00001200| 20 74 6f 20 63 72 65 61 | 74 65 20 61 6e 64 0d 09 | to crea|te and..|
|00001210| 09 09 75 73 65 20 61 20 | 33 30 30 20 64 70 69 20 |..use a |300 dpi |
|00001220| 62 69 74 6d 61 70 20 77 | 2f 20 50 6f 72 74 2e 20 |bitmap w|/ Port. |
|00001230| 20 54 68 65 20 62 69 74 | 6d 61 70 20 69 73 20 70 | The bit|map is p|
|00001240| 72 69 6e 74 65 64 20 61 | 74 20 66 75 6c 6c 0d 09 |rinted a|t full..|
|00001250| 09 09 72 65 73 6f 6c 75 | 74 69 6f 6e 20 6f 6e 20 |..resolu|tion on |
|00001260| 4c 61 73 65 72 57 72 69 | 74 65 72 73 2c 20 61 6e |LaserWri|ters, an|
|00001270| 64 20 63 6c 69 70 70 65 | 64 20 6f 6e 20 6f 74 68 |d clippe|d on oth|
|00001280| 65 72 20 70 72 69 6e 74 | 65 72 73 20 28 62 75 74 |er print|ers (but|
|00001290| 0d 09 09 09 74 68 65 79 | 20 73 74 69 6c 6c 20 70 |....they| still p|
|000012a0| 72 69 6e 74 29 2e 20 20 | 49 74 20 64 65 6d 6f 6e |rint). |It demon|
|000012b0| 73 74 72 61 74 65 73 20 | 68 6f 77 20 74 6f 20 75 |strates |how to u|
|000012c0| 73 65 20 61 20 68 69 67 | 68 20 72 65 73 6f 6c 75 |se a hig|h resolu|
|000012d0| 74 69 6f 6e 0d 09 09 09 | 69 6d 61 67 65 20 61 73 |tion....|image as|
|000012e0| 20 61 20 50 49 43 54 20 | 66 69 6c 65 2c 20 61 6e | a PICT |file, an|
|000012f0| 64 20 68 6f 77 20 74 6f | 20 70 72 69 6e 74 20 74 |d how to| print t|
|00001300| 68 65 6d 20 6f 75 74 2e | 0d 09 09 09 57 72 69 74 |hem out.|....Writ|
|00001310| 74 65 6e 20 69 6e 20 4d | 61 63 41 70 70 20 4f 62 |ten in M|acApp Ob|
|00001320| 6a 65 63 74 20 50 61 73 | 63 61 6c 20 63 6f 64 65 |ject Pas|cal code|
|00001330| 2e 0d 09 09 09 43 6f 6d | 70 61 74 69 62 69 6c 69 |.....Com|patibili|
|00001340| 74 79 20 72 61 74 69 6e | 67 20 3d 20 31 2e 20 20 |ty ratin|g = 1. |
|00001350| 28 54 68 65 20 75 73 65 | 20 6f 66 20 50 72 47 65 |(The use| of PrGe|
|00001360| 6e 65 72 61 6c 20 69 73 | 20 73 6c 69 67 68 74 6c |neral is| slightl|
|00001370| 79 20 0d 09 09 09 09 6f | 75 74 20 6f 66 20 74 68 |y .....o|ut of th|
|00001380| 65 20 6f 72 64 69 6e 61 | 72 79 2c 20 61 6c 74 68 |e ordina|ry, alth|
|00001390| 6f 75 67 68 20 73 75 70 | 70 6f 72 74 65 64 2e 29 |ough sup|ported.)|
|000013a0| 0d 7d 0d 0d 7b 20 52 65 | 61 73 6f 6e 73 20 66 6f |.}..{ Re|asons fo|
|000013b0| 72 20 74 68 69 73 20 76 | 65 72 73 69 6f 6e 20 6f |r this v|ersion o|
|000013c0| 66 20 72 65 61 6c 69 74 | 79 20 28 74 68 65 20 73 |f realit|y (the s|
|000013d0| 74 72 61 74 65 67 79 29 | 3a 0d 09 54 68 65 20 6d |trategy)|:..The m|
|000013e0| 61 69 6e 20 69 64 65 61 | 20 62 65 68 69 6e 64 20 |ain idea| behind |
|000013f0| 74 68 69 73 20 70 72 6f | 67 72 61 6d 20 69 73 20 |this pro|gram is |
|00001400| 74 6f 20 61 6c 6c 6f 77 | 20 79 6f 75 20 74 6f 20 |to allow| you to |
|00001410| 63 72 65 61 74 65 20 61 | 6e 64 20 66 6f 6f 6c 20 |create a|nd fool |
|00001420| 61 72 6f 75 6e 64 20 0d | 09 77 69 74 68 20 74 68 |around .|.with th|
|00001430| 65 20 4d 61 6e 64 65 6c | 62 72 6f 74 20 73 65 74 |e Mandel|brot set|
|00001440| 2c 20 75 73 69 6e 67 20 | 74 68 69 73 20 6e 75 6d |, using |this num|
|00001450| 62 65 72 20 63 72 75 6e | 63 68 65 72 20 77 69 7a |ber crun|cher wiz|
|00001460| 7a 6f 20 63 6f 6d 70 75 | 74 65 72 20 77 65 20 67 |zo compu|ter we g|
|00001470| 6f 74 0d 09 68 65 72 65 | 2e 20 20 57 68 69 6c 65 |ot..here|. While|
|00001480| 20 77 65 20 61 72 65 20 | 6d 61 6b 69 6e 67 20 74 | we are |making t|
|00001490| 68 65 73 65 20 64 6f 63 | 75 6d 65 6e 74 73 2c 20 |hese doc|uments, |
|000014a0| 77 65 20 61 6c 73 6f 20 | 74 68 72 6f 77 20 69 6e |we also |throw in|
|000014b0| 20 61 20 63 6f 75 70 6c | 65 20 6f 66 0d 09 73 70 | a coupl|e of..sp|
|000014c0| 65 63 69 61 6c 20 65 66 | 66 65 63 74 73 20 74 6f |ecial ef|fects to|
|000014d0| 20 6d 61 6b 65 20 69 74 | 20 6d 6f 72 65 20 66 75 | make it| more fu|
|000014e0| 6e 2c 20 6c 69 6b 65 20 | 74 68 65 20 73 70 65 63 |n, like |the spec|
|000014f0| 69 61 6c 20 63 6f 6c 6f | 72 20 6d 61 70 70 69 6e |ial colo|r mappin|
|00001500| 67 2e 20 20 0d 09 54 68 | 69 73 20 70 72 6f 67 72 |g. ..Th|is progr|
|00001510| 61 6d 20 69 73 20 73 70 | 65 63 69 66 69 63 61 6c |am is sp|ecifical|
|00001520| 6c 79 20 69 6e 74 65 6e | 64 65 64 20 74 6f 20 62 |ly inten|ded to b|
|00001530| 65 20 61 20 73 61 6d 70 | 6c 65 20 70 72 6f 67 72 |e a samp|le progr|
|00001540| 61 6d 2c 20 61 6e 64 20 | 61 73 20 73 75 63 68 0d |am, and |as such.|
|00001550| 09 74 61 6b 65 73 20 6e | 6f 20 63 6f 6d 70 61 74 |.takes n|o compat|
|00001560| 69 62 69 6c 69 74 79 20 | 72 69 73 6b 73 2e 20 20 |ibility |risks. |
|00001570| 54 68 69 73 20 6d 65 61 | 6e 73 20 69 74 20 69 73 |This mea|ns it is|
|00001580| 20 6e 6f 74 20 74 68 65 | 20 68 69 67 68 65 73 74 | not the| highest|
|00001590| 20 70 65 72 66 6f 72 6d | 61 6e 63 65 2c 20 69 74 | perform|ance, it|
|000015a0| 0d 09 69 73 20 74 68 65 | 20 73 61 66 65 73 74 2e |..is the| safest.|
|000015b0| 20 20 4e 6f 20 69 6e 74 | 65 6e 74 69 6f 6e 61 6c | No int|entional|
|000015c0| 20 73 68 6f 72 74 63 75 | 74 73 20 77 65 72 65 20 | shortcu|ts were |
|000015d0| 74 61 6b 65 6e 0d 09 69 | 6e 20 74 68 65 20 70 72 |taken..i|n the pr|
|000015e0| 6f 67 72 61 6d 2c 20 62 | 75 74 20 73 6f 6d 65 20 |ogram, b|ut some |
|000015f0| 74 68 69 6e 67 73 20 77 | 65 72 65 20 6c 65 66 74 |things w|ere left|
|00001600| 20 6f 75 74 20 64 75 65 | 20 74 6f 20 74 69 6d 65 | out due| to time|
|00001610| 20 63 6f 6e 73 74 72 61 | 69 6e 74 73 2e 20 20 4c | constra|ints. L|
|00001620| 69 6b 65 0d 09 61 6c 6c | 20 72 65 61 6c 20 70 72 |ike..all| real pr|
|00001630| 6f 67 72 61 6d 73 2c 20 | 73 6f 6d 65 20 70 65 6f |ograms, |some peo|
|00001640| 70 6c 65 20 77 69 6c 6c | 20 6c 69 6b 65 20 69 74 |ple will| like it|
|00001650| 20 61 6e 64 20 73 6f 6d | 65 20 70 65 6f 70 6c 65 | and som|e people|
|00001660| 20 77 69 6c 6c 20 68 61 | 74 65 20 69 74 2e 20 20 | will ha|te it. |
|00001670| 49 0d 09 68 6f 70 65 20 | 79 6f 75 20 6c 69 6b 65 |I..hope |you like|
|00001680| 20 69 74 2c 20 62 75 74 | 20 69 66 20 79 6f 75 20 | it, but| if you |
|00001690| 64 6f 6e d5 74 2c 20 73 | 65 6e 64 20 6d 65 20 73 |don.t, s|end me s|
|000016a0| 6f 6d 65 20 6d 61 69 6c | 20 74 65 6c 6c 69 6e 67 |ome mail| telling|
|000016b0| 20 6d 65 20 77 68 79 2e | 0d 09 0d 09 54 68 69 73 | me why.|....This|
|000016c0| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 74 68 65 20 | version| of the |
|000016d0| 70 72 6f 67 72 61 6d 20 | 64 6f 65 73 20 6e 6f 74 |program |does not|
|000016e0| 20 73 75 70 70 6f 72 74 | 20 63 6f 6c 6f 72 20 74 | support| color t|
|000016f0| 61 62 6c 65 20 61 6e 69 | 6d 61 74 69 6f 6e 2c 20 |able ani|mation, |
|00001700| 65 76 65 6e 20 0d 09 74 | 68 6f 75 67 68 20 74 68 |even ..t|hough th|
|00001710| 69 73 20 77 61 73 20 6f | 6e 65 20 6f 66 20 74 68 |is was o|ne of th|
|00001720| 65 20 6d 61 6a 6f 72 20 | 65 66 66 65 63 74 73 20 |e major |effects |
|00001730| 74 68 65 20 70 72 6f 67 | 72 61 6d 20 77 61 73 20 |the prog|ram was |
|00001740| 74 6f 20 75 73 65 20 66 | 6f 72 20 74 68 65 0d 09 |to use f|or the..|
|00001750| 6d 6f 73 74 20 69 6e 74 | 65 72 65 73 74 69 6e 67 |most int|eresting|
|00001760| 20 65 66 66 65 63 74 2e | 20 20 54 68 65 20 50 61 | effect.| The Pa|
|00001770| 6c 65 74 74 65 20 4d 61 | 6e 61 67 65 72 20 69 73 |lette Ma|nager is|
|00001780| 20 6e 6f 74 20 73 75 66 | 66 69 63 69 65 6e 74 20 | not suf|ficient |
|00001790| 74 6f 20 70 65 72 66 6f | 72 6d 0d 09 74 68 65 20 |to perfo|rm..the |
|000017a0| 63 6f 6c 6f 72 20 74 61 | 62 6c 65 20 61 6e 69 6d |color ta|ble anim|
|000017b0| 61 74 69 6f 6e 20 66 6f | 72 20 6d 75 6c 74 69 70 |ation fo|r multip|
|000017c0| 6c 65 20 64 6f 63 75 6d | 65 6e 74 73 2c 20 73 6f |le docum|ents, so|
|000017d0| 20 66 6f 72 20 74 68 69 | 73 20 76 65 72 73 69 6f | for thi|s versio|
|000017e0| 6e 20 69 74 0d 09 77 61 | 73 20 72 65 6d 6f 76 65 |n it..wa|s remove|
|000017f0| 64 2e 20 20 54 68 69 73 | 20 69 73 20 74 68 65 20 |d. This| is the |
|00001800| 6d 6f 73 74 20 63 6f 6d | 70 61 74 69 62 6c 65 20 |most com|patible |
|00001810| 77 61 79 20 6f 66 20 64 | 6f 69 6e 67 20 74 68 69 |way of d|oing thi|
|00001820| 6e 67 73 2c 20 61 6c 74 | 68 6f 75 67 68 0d 09 74 |ngs, alt|hough..t|
|00001830| 68 65 20 6d 6f 73 74 20 | 6c 61 6d 65 20 61 73 20 |he most |lame as |
|00001840| 77 65 6c 6c 2e 0d 09 0d | 09 54 68 65 20 6f 76 65 |well....|.The ove|
|00001850| 72 61 6c 6c 20 73 74 72 | 75 63 74 75 72 65 20 6f |rall str|ucture o|
|00001860| 66 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 69 73 |f the pr|ogram is|
|00001870| 20 74 6f 20 68 61 76 65 | 20 74 68 65 20 4d 61 63 | to have| the Mac|
|00001880| 41 70 70 20 44 6f 63 75 | 6d 65 6e 74 20 6f 62 6a |App Docu|ment obj|
|00001890| 65 63 74 0d 09 68 61 6e | 64 6c 65 20 61 6c 6c 20 |ect..han|dle all |
|000018a0| 74 68 65 20 64 61 74 61 | 2e 20 20 54 68 69 73 20 |the data|. This |
|000018b0| 69 6e 63 6c 75 64 65 73 | 20 61 6e 20 6f 66 66 73 |includes| an offs|
|000018c0| 63 72 65 65 6e 20 67 44 | 65 76 69 63 65 20 61 6e |creen gD|evice an|
|000018d0| 64 20 70 6f 72 74 20 74 | 68 61 74 20 61 72 65 0d |d port t|hat are.|
|000018e0| 09 74 68 65 20 61 63 74 | 75 61 6c 20 66 72 61 63 |.the act|ual frac|
|000018f0| 74 61 6c 20 64 61 74 61 | 2e 20 20 54 68 65 20 56 |tal data|. The V|
|00001900| 69 65 77 20 6f 62 6a 65 | 63 74 20 75 73 65 73 20 |iew obje|ct uses |
|00001910| 74 68 65 20 44 6f 63 75 | 6d 65 6e 74 d5 73 20 64 |the Docu|ment.s d|
|00001920| 61 74 61 20 74 6f 20 64 | 72 61 77 0d 09 69 6e 74 |ata to d|raw..int|
|00001930| 6f 20 74 68 65 20 77 69 | 6e 64 6f 77 20 76 69 73 |o the wi|ndow vis|
|00001940| 69 62 6c 65 20 74 6f 20 | 74 68 65 20 75 73 65 72 |ible to |the user|
|00001950| 2e 20 20 54 68 65 20 44 | 6f 63 75 6d 65 6e 74 20 |. The D|ocument |
|00001960| 64 6f 65 73 20 61 6c 6c | 20 74 68 65 20 77 6f 72 |does all| the wor|
|00001970| 6b 20 6f 66 0d 09 63 61 | 6c 63 75 6c 61 74 69 6e |k of..ca|lculatin|
|00001980| 67 20 6e 65 77 20 66 72 | 61 63 74 61 6c 73 20 64 |g new fr|actals d|
|00001990| 75 72 69 6e 67 20 49 64 | 6c 65 20 74 69 6d 65 73 |uring Id|le times|
|000019a0| 2e 20 20 49 74 20 61 6c | 73 6f 20 68 61 6e 64 6c |. It al|so handl|
|000019b0| 65 73 20 73 61 76 69 6e | 67 20 74 68 65 0d 09 64 |es savin|g the..d|
|000019c0| 61 74 61 20 74 6f 20 64 | 69 73 6b 20 61 6e 64 20 |ata to d|isk and |
|000019d0| 72 65 61 64 69 6e 67 20 | 69 74 20 62 61 63 6b 2e |reading |it back.|
|000019e0| 20 20 54 68 65 20 64 61 | 74 61 20 66 69 6c 65 73 | The da|ta files|
|000019f0| 20 61 72 65 20 50 49 43 | 54 20 73 6f 20 61 73 20 | are PIC|T so as |
|00001a00| 74 6f 20 62 65 20 61 73 | 0d 09 63 6f 6d 70 61 74 |to be as|..compat|
|00001a10| 69 62 6c 65 20 61 73 20 | 77 65 20 63 61 6e 2e 20 |ible as |we can. |
|00001a20| 20 20 54 68 65 20 70 72 | 6f 67 72 61 6d 20 68 61 | The pr|ogram ha|
|00001a30| 6e 64 6c 65 73 20 7a 6f | 6f 6d 69 6e 67 20 69 6e |ndles zo|oming in|
|00001a40| 20 74 6f 0d 09 73 65 65 | 20 63 6c 6f 73 65 72 20 | to..see| closer |
|00001a50| 76 69 65 77 73 20 6f 66 | 20 74 68 65 20 65 6e 76 |views of| the env|
|00001a60| 69 72 6f 6e 6d 65 6e 74 | 2c 20 75 73 69 6e 67 20 |ironment|, using |
|00001a70| 73 65 6c 65 63 74 69 6f | 6e 20 72 65 63 74 61 6e |selectio|n rectan|
|00001a80| 67 6c 65 73 20 61 73 20 | 79 6f 75 0d 09 77 6f 75 |gles as |you..wou|
|00001a90| 6c 64 20 65 78 70 65 63 | 74 2e 20 20 54 68 69 73 |ld expec|t. This|
|00001aa0| 20 77 68 6f 6c 65 20 62 | 6c 6f 63 6b 20 6f 66 20 | whole b|lock of |
|00001ab0| 63 6f 6d 6d 65 6e 74 73 | 20 61 74 20 74 68 65 20 |comments| at the |
|00001ac0| 62 65 67 69 6e 6e 69 6e | 67 20 61 72 65 20 69 6e |beginnin|g are in|
|00001ad0| 74 65 6e 64 65 64 0d 09 | 74 6f 20 64 65 73 63 72 |tended..|to descr|
|00001ae0| 69 62 65 20 73 6f 6d 65 | 20 6d 6f 72 65 20 6d 61 |ibe some| more ma|
|00001af0| 63 72 6f 73 63 6f 70 69 | 63 20 70 72 6f 62 6c 65 |croscopi|c proble|
|00001b00| 6d 73 20 61 6e 64 20 73 | 74 72 75 63 74 75 72 65 |ms and s|tructure|
|00001b10| 2e 20 20 49 6e 20 74 68 | 65 20 63 6f 64 65 20 0d |. In th|e code .|
|00001b20| 09 69 74 73 65 6c 66 20 | 79 6f 75 20 77 69 6c 6c |.itself |you will|
|00001b30| 20 66 69 6e 64 20 74 68 | 65 20 74 61 63 74 69 63 | find th|e tactic|
|00001b40| 61 6c 20 63 6f 6d 6d 65 | 6e 74 73 20 64 65 61 6c |al comme|nts deal|
|00001b50| 69 6e 67 20 77 69 74 68 | 20 68 6f 77 20 61 20 73 |ing with| how a s|
|00001b60| 70 65 63 69 66 69 63 0d | 09 6f 70 65 72 61 74 69 |pecific.|.operati|
|00001b70| 6f 6e 20 69 73 20 64 6f | 6e 65 2e 20 20 0d 09 0d |on is do|ne. ...|
|00001b80| 09 54 68 65 20 66 72 61 | 63 74 61 6c 20 63 61 6c |.The fra|ctal cal|
|00001b90| 63 75 6c 61 74 69 6f 6e | 20 69 73 20 64 6f 6e 65 |culation| is done|
|00001ba0| 20 62 79 20 74 68 65 20 | 43 61 6c 63 43 69 74 79 | by the |CalcCity|
|00001bb0| 20 72 6f 75 74 69 6e 65 | 20 6f 66 20 74 68 65 20 | routine| of the |
|00001bc0| 44 6f 63 75 6d 65 6e 74 | 2e 20 20 54 68 65 0d 09 |Document|. The..|
|00001bd0| 41 70 70 6c 69 63 61 74 | 69 6f 6e 20 6f 62 6a 65 |Applicat|ion obje|
|00001be0| 63 74 20 67 65 74 73 20 | 74 68 65 20 44 6f 49 64 |ct gets |the DoId|
|00001bf0| 6c 65 20 63 61 6c 6c 2c | 20 61 6e 64 20 68 65 20 |le call,| and he |
|00001c00| 63 61 6c 6c 73 20 65 61 | 63 68 20 64 6f 63 75 6d |calls ea|ch docum|
|00001c10| 65 6e 74 20 74 6f 20 0d | 09 68 61 76 65 20 61 20 |ent to .|.have a |
|00001c20| 70 69 78 65 6c 20 63 61 | 6c 63 75 6c 61 74 65 64 |pixel ca|lculated|
|00001c30| 20 69 6e 20 65 61 63 68 | 20 64 6f 63 75 6d 65 6e | in each| documen|
|00001c40| 74 2e 20 20 54 68 65 20 | 63 61 6c 63 75 6c 61 74 |t. The |calculat|
|00001c50| 69 6f 6e 20 69 73 20 64 | 6f 6e 65 20 61 20 70 69 |ion is d|one a pi|
|00001c60| 78 65 6c 0d 09 61 74 20 | 61 20 74 69 6d 65 20 73 |xel..at |a time s|
|00001c70| 6f 20 74 68 61 74 20 69 | 74 20 63 61 6e 20 62 65 |o that i|t can be|
|00001c80| 20 64 6f 6e 65 20 69 6e | 20 74 68 65 20 62 61 63 | done in| the bac|
|00001c90| 6b 67 72 6f 75 6e 64 20 | 77 69 74 68 20 6e 6f 20 |kground |with no |
|00001ca0| 76 69 73 69 62 6c 65 20 | 65 66 66 65 63 74 0d 09 |visible |effect..|
|00001cb0| 6f 6e 20 74 68 65 20 66 | 6f 72 65 67 72 6f 75 6e |on the f|oregroun|
|00001cc0| 64 20 61 70 70 2e 20 20 | 41 73 20 65 61 63 68 20 |d app. |As each |
|00001cd0| 68 6f 72 69 7a 6f 6e 74 | 61 6c 20 6c 69 6e 65 20 |horizont|al line |
|00001ce0| 6f 66 20 64 61 74 61 20 | 69 73 20 66 69 6e 69 73 |of data |is finis|
|00001cf0| 68 65 64 20 69 74 20 69 | 73 20 0d 09 75 70 64 61 |hed it i|s ..upda|
|00001d00| 74 65 64 20 74 6f 20 74 | 68 65 20 73 63 72 65 65 |ted to t|he scree|
|00001d10| 6e 2e 20 20 54 68 65 20 | 61 6c 67 6f 72 69 74 68 |n. The |algorith|
|00001d20| 6d 20 69 73 20 76 65 72 | 79 20 73 69 6d 70 6c 65 |m is ver|y simple|
|00001d30| 2e 0d 09 0d 09 41 6c 6c | 6f 63 61 74 69 6e 67 20 |.....All|ocating |
|00001d40| 61 6e 64 20 75 73 69 6e | 67 20 61 6e 20 6f 66 66 |and usin|g an off|
|00001d50| 73 63 72 65 65 6e 20 67 | 44 65 76 69 63 65 20 61 |screen g|Device a|
|00001d60| 6e 64 20 70 6f 72 74 20 | 61 72 65 20 66 6f 75 6e |nd port |are foun|
|00001d70| 64 20 69 6e 20 74 68 65 | 20 44 6f 63 75 6d 65 6e |d in the| Documen|
|00001d80| 74 0d 09 6f 62 6a 65 63 | 74 2c 20 61 73 20 74 68 |t..objec|t, as th|
|00001d90| 65 20 42 75 69 6c 64 4f | 66 66 57 6f 72 6c 64 20 |e BuildO|ffWorld |
|00001da0| 6d 65 74 68 6f 64 2e 20 | 20 54 68 65 20 70 6f 72 |method. | The por|
|00001db0| 74 20 6f 66 66 73 63 72 | 65 65 6e 20 69 73 20 75 |t offscr|een is u|
|00001dc0| 73 65 64 20 61 73 20 61 | 20 64 72 61 77 69 6e 67 |sed as a| drawing|
|00001dd0| 0d 09 65 6e 76 69 72 6f | 6e 6d 65 6e 74 20 6f 6e |..enviro|nment on|
|00001de0| 63 65 20 61 20 70 69 78 | 65 6c 20 69 73 20 63 61 |ce a pix|el is ca|
|00001df0| 6c 63 75 6c 61 74 65 64 | 2c 20 61 73 20 73 65 65 |lculated|, as see|
|00001e00| 6e 20 69 6e 20 44 6f 49 | 64 6c 65 20 66 6f 72 20 |n in DoI|dle for |
|00001e10| 74 68 65 20 44 6f 63 75 | 6d 65 6e 74 2e 0d 0d 0d |the Docu|ment....|
|00001e20| 09 49 66 20 79 6f 75 72 | 20 70 72 6f 67 72 61 6d |.If your| program|
|00001e30| 20 64 6f 65 73 20 6e 6f | 74 20 6e 65 65 64 20 74 | does no|t need t|
|00001e40| 6f 20 75 73 65 20 63 6f | 6c 6f 72 20 74 61 62 6c |o use co|lor tabl|
|00001e50| 65 20 61 6e 69 6d 61 74 | 69 6f 6e 2c 20 74 68 65 |e animat|ion, the|
|00001e60| 6e 20 79 6f 75 20 73 68 | 6f 75 6c 64 0d 09 75 73 |n you sh|ould..us|
|00001e70| 65 20 74 68 65 20 50 61 | 6c 65 74 74 65 20 4d 61 |e the Pa|lette Ma|
|00001e80| 6e 61 67 65 72 2e 20 20 | 49 74 20 64 6f 65 73 20 |nager. |It does |
|00001e90| 61 20 67 6f 6f 64 20 6a | 6f 62 20 61 74 20 68 61 |a good j|ob at ha|
|00001ea0| 6e 64 6c 69 6e 67 20 74 | 68 65 20 63 6f 6c 6f 72 |ndling t|he color|
|00001eb0| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 0d 09 77 68 | environ|ment..wh|
|00001ec0| 65 6e 20 74 68 65 20 63 | 6c 69 65 6e 74 73 20 6d |en the c|lients m|
|00001ed0| 65 72 65 6c 79 20 6e 65 | 65 64 20 74 6f 20 75 73 |erely ne|ed to us|
|00001ee0| 65 20 63 6f 6c 6f 72 73 | 2e 20 20 49 6e 20 74 68 |e colors|. In th|
|00001ef0| 69 73 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 74 68 |is versi|on of th|
|00001f00| 65 20 70 72 6f 67 72 61 | 6d 2c 0d 09 77 65 20 61 |e progra|m,..we a|
|00001f10| 76 6f 69 64 20 63 6f 6c | 6f 72 20 74 61 62 6c 65 |void col|or table|
|00001f20| 20 61 6e 69 6d 61 74 69 | 6f 6e 2c 20 73 69 6e 63 | animati|on, sinc|
|00001f30| 65 20 69 74 20 77 6f 75 | 6c 64 20 72 65 71 75 69 |e it wou|ld requi|
|00001f40| 72 65 20 73 6f 6d 65 20 | 63 6f 6d 70 61 74 61 62 |re some |compatab|
|00001f50| 69 6c 69 74 79 0d 09 72 | 69 73 6b 73 20 69 6e 20 |ility..r|isks in |
|00001f60| 6f 72 64 65 72 20 74 6f | 20 75 73 65 20 69 74 20 |order to| use it |
|00001f70| 65 66 66 65 63 74 69 76 | 65 6c 79 2e 20 20 54 68 |effectiv|ely. Th|
|00001f80| 65 20 70 61 6c 65 74 74 | 65 20 75 73 65 64 20 68 |e palett|e used h|
|00001f90| 65 72 65 20 69 73 20 6f | 75 72 20 67 72 6f 75 70 |ere is o|ur group|
|00001fa0| 20 6f 66 0d 09 63 6f 6c | 6f 72 73 2c 20 61 73 73 | of..col|ors, ass|
|00001fb0| 6f 63 69 61 74 65 64 20 | 77 69 74 68 20 65 61 63 |ociated |with eac|
|00001fc0| 68 20 77 69 6e 64 6f 77 | 2c 20 6d 61 6b 69 6e 67 |h window|, making|
|00001fd0| 20 74 68 65 20 66 72 61 | 63 74 61 6c 73 20 6c 6f | the fra|ctals lo|
|00001fe0| 6f 6b 20 27 72 69 67 68 | 74 27 0d 09 77 68 65 6e |ok 'righ|t'..when|
|00001ff0| 65 76 65 72 20 77 65 20 | 67 65 74 20 61 6e 20 75 |ever we |get an u|
|00002000| 70 64 61 74 65 20 65 76 | 65 6e 74 2e 20 20 54 68 |pdate ev|ent. Th|
|00002010| 65 20 63 6f 6c 6f 72 20 | 6d 61 70 70 69 6e 67 20 |e color |mapping |
|00002020| 66 72 6f 6d 20 74 68 65 | 20 6f 66 66 73 63 72 65 |from the| offscre|
|00002030| 65 6e 0d 09 67 44 65 76 | 69 63 65 20 77 2f 20 50 |en..gDev|ice w/ P|
|00002040| 6f 72 74 20 74 6f 20 74 | 68 65 20 73 63 72 65 65 |ort to t|he scree|
|00002050| 6e 20 69 73 20 64 6f 6e | 65 20 61 75 74 6f 6d 61 |n is don|e automa|
|00002060| 74 69 63 61 6c 6c 79 20 | 62 79 20 43 6f 70 79 42 |tically |by CopyB|
|00002070| 69 74 73 2c 20 73 6f 20 | 77 65 0d 09 64 6f 6e 27 |its, so |we..don'|
|00002080| 74 20 68 61 76 65 20 74 | 6f 20 64 6f 20 61 6e 79 |t have t|o do any|
|00002090| 74 68 69 6e 67 20 73 70 | 65 63 69 61 6c 20 74 6f |thing sp|ecial to|
|000020a0| 20 6d 61 6b 65 20 69 74 | 20 77 6f 72 6b 2e 20 20 | make it| work. |
|000020b0| 55 73 69 6e 67 20 74 68 | 65 20 50 61 6c 65 74 74 |Using th|e Palett|
|000020c0| 65 20 0d 09 4d 61 6e 61 | 67 65 72 20 6d 61 6b 65 |e ..Mana|ger make|
|000020d0| 73 20 66 6f 72 20 74 68 | 65 20 73 69 6d 70 6c 65 |s for th|e simple|
|000020e0| 73 74 20 63 6f 64 65 2e | 20 20 54 68 69 73 20 76 |st code.| This v|
|000020f0| 65 72 73 69 6f 6e 20 67 | 69 76 65 73 20 61 63 63 |ersion g|ives acc|
|00002100| 65 70 74 61 62 6c 65 0d | 09 70 65 72 66 6f 72 6d |eptable.|.perform|
|00002110| 61 6e 63 65 20 77 68 65 | 6e 20 75 73 69 6e 67 20 |ance whe|n using |
|00002120| 73 79 73 74 65 6d 20 36 | 2e 30 20 6f 72 20 51 75 |system 6|.0 or Qu|
|00002130| 69 63 6b 65 72 44 72 61 | 77 2e 20 20 49 6e 20 61 |ickerDra|w. In a|
|00002140| 64 64 69 74 69 6f 6e 20 | 74 68 65 20 63 6f 6c 6f |ddition |the colo|
|00002150| 72 73 0d 09 64 69 73 70 | 6c 61 79 65 64 20 73 68 |rs..disp|layed sh|
|00002160| 6f 75 6c 64 20 61 6c 77 | 61 79 73 20 6c 6f 6f 6b |ould alw|ays look|
|00002170| 20 63 6f 72 72 65 63 74 | 2c 20 73 69 6e 63 65 20 | correct|, since |
|00002180| 74 68 65 20 50 61 6c 65 | 74 74 65 20 4d 61 6e 61 |the Pale|tte Mana|
|00002190| 67 65 72 20 77 69 6c 6c | 20 74 72 79 0d 09 74 6f |ger will| try..to|
|000021a0| 20 6b 65 65 70 20 74 68 | 65 20 63 6f 6c 6f 72 73 | keep th|e colors|
|000021b0| 20 64 69 73 70 6c 61 79 | 65 64 20 61 73 20 61 63 | display|ed as ac|
|000021c0| 63 75 72 61 74 65 20 61 | 73 20 70 6f 73 73 69 62 |curate a|s possib|
|000021d0| 6c 65 2e 20 20 45 76 65 | 6e 20 77 68 65 6e 20 69 |le. Eve|n when i|
|000021e0| 6e 20 74 68 65 0d 09 62 | 61 63 6b 67 72 6f 75 6e |n the..b|ackgroun|
|000021f0| 64 2c 20 6f 72 20 6f 6e | 20 6f 74 68 65 72 20 6d |d, or on| other m|
|00002200| 6f 6e 69 74 6f 72 73 2c | 20 74 68 65 20 63 6f 6c |onitors,| the col|
|00002210| 6f 72 73 20 64 69 73 70 | 6c 61 79 65 64 20 73 68 |ors disp|layed sh|
|00002220| 6f 75 6c 64 20 6c 6f 6f | 6b 20 0d 09 63 6c 6f 73 |ould loo|k ..clos|
|00002230| 65 20 74 6f 20 74 68 65 | 20 6e 6f 72 6d 61 6c 20 |e to the| normal |
|00002240| 73 65 74 2e 20 20 46 6f | 72 20 73 69 6d 70 6c 65 |set. Fo|r simple|
|00002250| 72 20 63 6f 64 65 2c 20 | 74 68 65 20 43 6f 6c 6f |r code, |the Colo|
|00002260| 72 20 53 65 61 72 63 68 | 20 50 72 6f 63 20 74 68 |r Search| Proc th|
|00002270| 61 74 20 6d 61 64 65 20 | 0d 09 74 68 65 20 7a 65 |at made |..the ze|
|00002280| 62 72 61 20 64 69 73 70 | 6c 61 79 20 77 61 73 20 |bra disp|lay was |
|00002290| 72 65 6d 6f 76 65 64 2e | 20 20 54 68 65 20 70 61 |removed.| The pa|
|000022a0| 6c 65 74 74 65 20 68 61 | 73 20 74 68 65 20 73 79 |lette ha|s the sy|
|000022b0| 73 74 65 6d 20 70 61 6c | 65 74 74 65 20 61 73 20 |stem pal|ette as |
|000022c0| 74 68 65 0d 09 66 69 72 | 73 74 20 31 36 20 63 6f |the..fir|st 16 co|
|000022d0| 6c 6f 72 73 2c 20 77 68 | 69 63 68 20 77 69 6c 6c |lors, wh|ich will|
|000022e0| 20 62 65 20 75 73 65 64 | 20 69 6e 20 74 68 65 20 | be used| in the |
|000022f0| 6c 65 73 73 65 72 20 63 | 6f 6c 6f 72 20 6d 6f 64 |lesser c|olor mod|
|00002300| 65 73 2e 20 20 54 68 69 | 73 20 69 73 20 74 6f 0d |es. Thi|s is to.|
|00002310| 09 61 76 6f 69 64 20 66 | 6f 72 63 69 6e 67 20 61 |.avoid f|orcing a|
|00002320| 20 6c 61 72 67 65 20 67 | 72 6f 75 70 20 6f 66 20 | large g|roup of |
|00002330| 6f 6e 65 20 63 6f 6c 6f | 72 20 6f 6e 74 6f 20 74 |one colo|r onto t|
|00002340| 68 65 20 6d 6f 6e 69 74 | 6f 72 2c 20 77 68 69 63 |he monit|or, whic|
|00002350| 68 20 77 69 6c 6c 20 6c | 6f 6f 6b 20 0d 09 61 73 |h will l|ook ..as|
|00002360| 20 62 61 64 20 61 73 20 | 68 61 76 69 6e 67 20 74 | bad as |having t|
|00002370| 68 65 20 73 79 73 74 65 | 6d 20 70 61 6c 65 74 74 |he syste|m palett|
|00002380| 65 2e 20 20 52 61 74 68 | 65 72 20 74 68 61 6e 20 |e. Rath|er than |
|00002390| 68 61 76 65 20 74 68 65 | 20 50 4d 20 6d 61 6b 65 |have the| PM make|
|000023a0| 20 0d 09 65 76 65 72 79 | 62 6f 64 79 20 6c 6f 6f | ..every|body loo|
|000023b0| 6b 20 62 61 64 20 69 6e | 20 6c 65 73 73 65 72 20 |k bad in| lesser |
|000023c0| 6d 6f 64 65 73 2c 20 77 | 65 20 77 69 6c 6c 20 68 |modes, w|e will h|
|000023d0| 6f 70 65 66 75 6c 6c 79 | 20 6d 61 6b 65 20 6f 74 |opefully| make ot|
|000023e0| 68 65 72 20 70 72 6f 67 | 72 61 6d 73 0d 09 6c 6f |her prog|rams..lo|
|000023f0| 6f 6b 20 4f 4b 20 62 79 | 20 65 6e 73 75 72 69 6e |ok OK by| ensurin|
|00002400| 67 20 74 68 6f 73 65 20 | 63 6f 6c 6f 72 73 20 61 |g those |colors a|
|00002410| 72 65 20 74 68 65 72 65 | 2e 0d 09 0d 09 57 68 65 |re there|.....Whe|
|00002420| 6e 20 77 65 20 73 65 74 | 20 75 70 20 74 68 65 20 |n we set| up the |
|00002430| 6f 66 66 73 63 72 65 65 | 6e 20 67 44 65 76 69 63 |offscree|n gDevic|
|00002440| 65 2c 20 77 65 20 73 65 | 74 20 69 74 20 75 70 20 |e, we se|t it up |
|00002450| 75 73 69 6e 67 20 61 20 | 33 20 62 69 74 20 69 54 |using a |3 bit iT|
|00002460| 61 62 6c 65 20 74 6f 20 | 73 61 76 65 0d 09 6f 6e |able to |save..on|
|00002470| 20 6d 65 6d 6f 72 79 20 | 74 68 61 74 20 69 73 6e | memory |that isn|
|00002480| 27 74 20 75 73 65 64 2e | 20 20 54 68 65 20 6f 66 |'t used.| The of|
|00002490| 66 73 63 72 65 65 6e 20 | 64 65 76 69 63 65 20 69 |fscreen |device i|
|000024a0| 73 20 6e 6f 74 20 66 69 | 6c 6c 65 64 20 75 73 69 |s not fi|lled usi|
|000024b0| 6e 67 20 63 6f 6c 6f 72 | 20 0d 09 63 6f 6d 6d 61 |ng color| ..comma|
|000024c0| 6e 64 73 2c 20 62 75 74 | 20 69 73 20 66 69 6c 6c |nds, but| is fill|
|000024d0| 65 64 20 75 73 69 6e 67 | 20 61 6e 20 69 6e 64 65 |ed using| an inde|
|000024e0| 78 65 64 20 6d 6f 64 65 | 20 69 6e 73 74 65 61 64 |xed mode| instead|
|000024f0| 2e 20 20 54 68 69 73 20 | 6d 65 61 6e 73 20 6e 6f |. This |means no|
|00002500| 20 63 6f 6c 6f 72 0d 09 | 6d 61 70 70 69 6e 67 20 | color..|mapping |
|00002510| 69 73 20 6e 65 63 65 73 | 73 61 72 79 20 66 6f 72 |is neces|sary for|
|00002520| 20 74 68 61 74 20 61 73 | 20 61 20 64 65 73 74 69 | that as| a desti|
|00002530| 6e 61 74 69 6f 6e 2c 20 | 73 6f 20 74 68 65 72 65 |nation, |so there|
|00002540| 20 69 73 20 6e 6f 20 70 | 6f 69 6e 74 20 69 6e 20 | is no p|oint in |
|00002550| 74 61 6b 69 6e 67 0d 09 | 75 70 20 61 6e 6f 74 68 |taking..|up anoth|
|00002560| 65 72 20 34 4b 20 70 65 | 72 20 64 6f 63 75 6d 65 |er 4K pe|r docume|
|00002570| 6e 74 20 74 68 61 74 20 | 69 73 20 6e 6f 74 20 75 |nt that |is not u|
|00002580| 73 65 64 2e 0d 09 0d 09 | 57 68 65 6e 20 61 20 64 |sed.....|When a d|
|00002590| 6f 63 75 6d 65 6e 74 20 | 69 73 20 73 61 76 65 64 |ocument |is saved|
|000025a0| 20 74 68 65 20 63 6f 6c | 6f 72 20 74 61 62 6c 65 | the col|or table|
|000025b0| 20 66 72 6f 6d 20 74 68 | 65 20 6f 66 66 73 63 72 | from th|e offscr|
|000025c0| 65 65 6e 20 67 44 65 76 | 69 63 65 20 69 73 20 75 |een gDev|ice is u|
|000025d0| 73 65 64 2e 0d 09 54 68 | 69 73 20 69 73 20 74 68 |sed...Th|is is th|
|000025e0| 65 20 63 6c 75 74 20 72 | 65 73 6f 75 72 63 65 20 |e clut r|esource |
|000025f0| 74 68 61 74 20 69 73 20 | 75 73 65 64 20 75 6e 69 |that is |used uni|
|00002600| 66 6f 72 6d 6c 79 20 74 | 68 72 6f 75 67 68 6f 75 |formly t|hroughou|
|00002610| 74 20 74 68 65 20 70 72 | 6f 67 72 61 6d 2e 20 20 |t the pr|ogram. |
|00002620| 49 66 0d 09 79 6f 75 20 | 68 61 74 65 20 6d 79 20 |If..you |hate my |
|00002630| 63 68 6f 69 63 65 20 6f | 66 20 63 6f 6c 6f 72 73 |choice o|f colors|
|00002640| 2c 20 79 6f 75 20 63 61 | 6e 20 63 68 61 6e 67 65 |, you ca|n change|
|00002650| 20 74 68 65 20 63 6c 75 | 74 20 74 6f 20 73 6f 6d | the clu|t to som|
|00002660| 65 74 68 69 6e 67 20 65 | 6c 73 65 20 61 6e 64 0d |ething e|lse and.|
|00002670| 09 61 6c 6c 20 73 68 6f | 75 6c 64 20 77 6f 72 6b |.all sho|uld work|
|00002680| 20 74 68 65 20 73 61 6d | 65 20 28 65 78 63 65 70 | the sam|e (excep|
|00002690| 74 20 6f 6c 64 20 64 6f | 63 75 6d 65 6e 74 73 20 |t old do|cuments |
|000026a0| 77 69 6c 6c 20 6d 61 70 | 20 69 6e 74 6f 20 73 6f |will map| into so|
|000026b0| 6d 65 74 68 69 6e 67 20 | 65 6c 73 65 29 2e 0d 09 |mething |else)...|
|000026c0| 0d 09 54 68 65 20 70 72 | 6f 67 72 61 6d 20 63 75 |..The pr|ogram cu|
|000026d0| 72 72 65 6e 74 6c 79 20 | 75 73 65 73 20 53 63 72 |rrently |uses Scr|
|000026e0| 65 65 6e 42 69 74 73 2e | 42 6f 75 6e 64 73 20 61 |eenBits.|Bounds a|
|000026f0| 73 20 74 68 65 20 64 65 | 74 65 72 6d 69 6e 69 6e |s the de|terminin|
|00002700| 67 20 73 69 7a 65 20 6f | 66 20 74 68 65 0d 09 76 |g size o|f the..v|
|00002710| 69 65 77 20 61 6e 64 20 | 74 68 75 73 20 74 68 65 |iew and |thus the|
|00002720| 20 66 72 61 63 74 61 6c | 20 74 68 61 74 20 69 73 | fractal| that is|
|00002730| 20 63 61 6c 63 75 6c 61 | 74 65 64 2e 20 20 54 68 | calcula|ted. Th|
|00002740| 69 73 20 69 73 20 4f 4b | 2c 20 62 75 74 20 61 20 |is is OK|, but a |
|00002750| 62 65 74 74 65 72 20 61 | 70 70 72 6f 61 63 68 0d |better a|pproach.|
|00002760| 09 77 6f 75 6c 64 20 62 | 65 20 74 6f 20 61 6c 6c |.would b|e to all|
|00002770| 6f 77 20 74 68 65 20 75 | 73 65 72 20 74 6f 20 73 |ow the u|ser to s|
|00002780| 70 65 63 69 66 79 20 74 | 68 65 20 6c 69 6d 69 74 |pecify t|he limit|
|00002790| 73 20 6f 66 20 74 68 65 | 20 46 72 61 63 74 61 6c |s of the| Fractal|
|000027a0| 20 74 68 65 79 20 77 61 | 6e 74 2e 20 20 54 68 69 | they wa|nt. Thi|
|000027b0| 73 0d 09 69 6e 76 6f 6c | 76 65 73 20 61 64 64 69 |s..invol|ves addi|
|000027c0| 6e 67 20 61 6e 6f 74 68 | 65 72 20 64 69 61 6c 6f |ng anoth|er dialo|
|000027d0| 67 20 61 6e 64 20 73 61 | 76 65 20 64 65 66 61 75 |g and sa|ve defau|
|000027e0| 6c 74 73 20 74 79 70 65 | 20 6f 66 20 66 65 61 74 |lts type| of feat|
|000027f0| 75 72 65 20 62 75 74 20 | 69 73 20 61 20 62 65 74 |ure but |is a bet|
|00002800| 74 65 72 0d 09 77 61 79 | 20 74 6f 20 73 6f 6c 76 |ter..way| to solv|
|00002810| 65 20 74 68 65 20 70 72 | 6f 62 6c 65 6d 20 73 69 |e the pr|oblem si|
|00002820| 6e 63 65 20 69 74 20 69 | 73 20 6e 6f 74 20 6f 62 |nce it i|s not ob|
|00002830| 76 69 6f 75 73 20 77 68 | 61 74 20 74 68 65 20 62 |vious wh|at the b|
|00002840| 65 73 74 20 73 69 7a 65 | 20 77 6f 75 6c 64 20 62 |est size| would b|
|00002850| 65 2e 0d 09 53 63 72 65 | 65 6e 42 69 74 73 2e 62 |e...Scre|enBits.b|
|00002860| 6f 75 6e 64 73 20 69 73 | 20 65 61 73 79 20 74 6f |ounds is| easy to|
|00002870| 20 75 73 65 2c 20 62 75 | 74 20 77 68 65 6e 65 76 | use, bu|t whenev|
|00002880| 65 72 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 6f |er there| is no o|
|00002890| 62 76 69 6f 75 73 20 62 | 65 73 74 20 61 6e 73 77 |bvious b|est answ|
|000028a0| 65 72 0d 09 69 74 20 69 | 73 20 61 6c 77 61 79 73 |er..it i|s always|
|000028b0| 20 62 65 74 74 65 72 20 | 74 6f 20 6c 65 74 20 74 | better |to let t|
|000028c0| 68 65 20 75 73 65 72 20 | 64 65 63 69 64 65 20 69 |he user |decide i|
|000028d0| 6e 73 74 65 61 64 2c 20 | 74 68 61 74 20 77 61 79 |nstead, |that way|
|000028e0| 20 74 68 65 79 20 63 61 | 6e d5 74 20 62 69 74 63 | they ca|n.t bitc|
|000028f0| 68 2e 0d 09 0d 09 41 6e | 6f 74 68 65 72 20 67 6f |h.....An|other go|
|00002900| 61 6c 20 6f 66 20 63 6f | 75 72 73 65 20 77 61 73 |al of co|urse was|
|00002910| 20 74 6f 20 67 65 74 20 | 74 68 69 73 20 74 68 69 | to get |this thi|
|00002920| 6e 67 20 64 6f 6e 65 2e | 20 20 41 20 67 6f 61 6c |ng done.| A goal|
|00002930| 20 74 68 61 74 20 74 65 | 6e 64 73 20 74 6f 20 73 | that te|nds to s|
|00002940| 6c 69 64 65 0d 09 61 77 | 61 79 20 61 73 20 6d 6f |lide..aw|ay as mo|
|00002950| 72 65 20 74 68 69 6e 67 | 73 20 61 72 65 20 61 64 |re thing|s are ad|
|00002960| 64 65 64 20 74 6f 20 74 | 68 65 20 70 72 6f 67 72 |ded to t|he progr|
|00002970| 61 6d 2c 20 73 6f 20 69 | 6e 20 74 72 75 65 20 4d |am, so i|n true M|
|00002980| 61 63 69 6e 74 6f 73 68 | 20 73 74 79 6c 65 2c 0d |acintosh| style,.|
|00002990| 09 74 68 65 20 31 2e 30 | 20 76 65 72 73 69 6f 6e |.the 1.0| version|
|000029a0| 20 6f 66 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 | of the |program |
|000029b0| 69 73 20 73 6f 6d 65 77 | 68 61 74 20 6c 69 6d 69 |is somew|hat limi|
|000029c0| 74 65 64 2c 20 61 6e 64 | 20 6d 61 79 20 6e 6f 74 |ted, and| may not|
|000029d0| 20 62 65 20 66 75 6c 6c | 79 0d 09 64 65 62 75 67 | be full|y..debug|
|000029e0| 67 65 64 2e 20 20 53 6f | 6d 65 20 74 68 69 6e 67 |ged. So|me thing|
|000029f0| 73 20 73 70 65 63 69 66 | 69 63 61 6c 6c 79 20 6c |s specif|ically l|
|00002a00| 65 66 74 20 6f 75 74 3a | 20 70 72 69 6e 74 69 6e |eft out:| printin|
|00002a10| 67 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 73 20 |g the do|cuments |
|00002a20| 74 6f 20 0d 09 61 20 4c | 61 73 65 72 57 72 69 74 |to ..a L|aserWrit|
|00002a30| 65 72 20 77 69 74 68 20 | 67 72 65 79 20 73 63 61 |er with |grey sca|
|00002a40| 6c 65 73 20 69 6e 73 74 | 65 61 64 2c 20 75 73 69 |les inst|ead, usi|
|00002a50| 6e 67 20 74 65 6d 70 6f | 72 61 72 79 20 64 6f 63 |ng tempo|rary doc|
|00002a60| 75 6d 65 6e 74 73 20 74 | 6f 20 0d 09 6d 61 6b 65 |uments t|o ..make|
|00002a70| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 63 72 61 | the pro|gram cra|
|00002a80| 73 68 6c 65 73 73 20 28 | 73 6f 20 79 6f 75 20 63 |shless (|so you c|
|00002a90| 61 6e 20 73 74 61 72 74 | 20 75 70 20 77 68 65 72 |an start| up wher|
|00002aa0| 65 20 79 6f 75 20 6c 65 | 66 74 20 6f 66 66 2c 20 |e you le|ft off, |
|00002ab0| 73 61 76 69 6e 67 0d 09 | 74 68 65 20 63 6f 6d 70 |saving..|the comp|
|00002ac0| 75 74 61 74 69 6f 6e 20 | 69 74 20 74 6f 6f 6b 20 |utation |it took |
|00002ad0| 74 6f 20 67 65 74 20 74 | 68 65 72 65 29 2c 20 61 |to get t|here), a|
|00002ae0| 6e 20 6f 70 74 69 6f 6e | 20 74 6f 20 6d 61 6b 65 |n option| to make|
|00002af0| 20 74 68 65 20 d4 70 65 | 6e d5 20 73 69 7a 65 20 | the .pe|n. size |
|00002b00| 62 69 67 67 65 72 0d 09 | 73 6f 20 79 6f 75 20 63 |bigger..|so you c|
|00002b10| 61 6e 20 64 6f 20 61 20 | 6c 6f 77 2d 72 65 73 20 |an do a |low-res |
|00002b20| 66 72 61 63 74 61 6c 20 | 74 6f 20 62 65 67 69 6e |fractal |to begin|
|00002b30| 20 77 69 74 68 2e 20 20 | 54 68 65 73 65 20 74 68 | with. |These th|
|00002b40| 69 6e 67 73 20 61 72 65 | 20 61 6c 6c 20 61 64 6d |ings are| all adm|
|00002b50| 69 72 61 62 6c 65 20 0d | 09 66 65 61 74 75 72 65 |irable .|.feature|
|00002b60| 73 20 74 6f 20 61 64 64 | 2c 20 62 75 74 20 79 6f |s to add|, but yo|
|00002b70| 75 20 68 61 76 65 20 74 | 6f 20 66 69 6e 69 73 68 |u have t|o finish|
|00002b80| 20 76 65 72 73 69 6f 6e | 20 31 2e 30 20 73 6f 6d | version| 1.0 som|
|00002b90| 65 74 69 6d 65 2c 20 73 | 6f 20 74 68 69 73 20 77 |etime, s|o this w|
|00002ba0| 61 73 20 69 74 2e 20 20 | 0d 09 54 68 65 73 65 20 |as it. |..These |
|00002bb0| 6f 74 68 65 72 20 74 68 | 69 6e 67 73 20 77 69 6c |other th|ings wil|
|00002bc0| 6c 20 62 65 20 61 64 64 | 65 64 20 69 66 20 70 6f |l be add|ed if po|
|00002bd0| 73 73 69 62 6c 65 2e 0d | 09 0d 09 43 61 72 65 66 |ssible..|...Caref|
|00002be0| 75 6c 6c 79 20 77 61 74 | 63 68 20 74 68 65 20 38 |ully wat|ch the 8|
|00002bf0| 38 31 20 66 6c 61 67 20 | 77 69 74 68 20 74 68 69 |81 flag |with thi|
|00002c00| 73 20 4d 50 57 20 62 75 | 73 69 6e 65 73 73 2e 20 |s MPW bu|siness. |
|00002c10| 20 54 68 65 72 65 20 61 | 72 65 20 61 20 6e 75 6d | There a|re a num|
|00002c20| 62 65 72 20 6f 66 0d 09 | 72 69 64 69 63 75 6c 6f |ber of..|ridiculo|
|00002c30| 75 73 20 70 72 6f 62 6c | 65 6d 73 20 61 73 73 6f |us probl|ems asso|
|00002c40| 63 69 61 74 65 64 20 77 | 69 74 68 20 69 74 73 20 |ciated w|ith its |
|00002c50| 75 73 65 2e 20 20 49 6e | 20 70 61 72 74 69 63 75 |use. In| particu|
|00002c60| 6c 61 72 20 74 68 65 20 | 24 4c 4f 41 44 20 66 69 |lar the |$LOAD fi|
|00002c70| 6c 65 73 0d 09 61 72 65 | 20 64 61 6e 67 65 72 6f |les..are| dangero|
|00002c80| 75 73 20 74 6f 20 75 73 | 65 20 77 69 74 68 20 38 |us to us|e with 8|
|00002c90| 38 31 20 61 6e 64 20 74 | 68 65 20 63 6f 6d 62 69 |81 and t|he combi|
|00002ca0| 6e 61 74 69 6f 6e 20 6f | 66 20 74 68 65 20 74 77 |nation o|f the tw|
|00002cb0| 6f 20 77 69 6c 6c 20 6f | 66 74 65 6e 20 0d 09 65 |o will o|ften ..e|
|00002cc0| 6e 64 20 75 70 20 63 6f | 6d 70 69 6c 69 6e 67 20 |nd up co|mpiling |
|00002cd0| 73 75 63 63 65 73 73 66 | 75 6c 6c 79 20 69 6e 74 |successf|ully int|
|00002ce0| 6f 20 61 20 70 72 6f 67 | 72 61 6d 20 74 68 61 74 |o a prog|ram that|
|00002cf0| 20 69 73 20 67 61 72 62 | 61 67 65 20 61 6e 64 20 | is garb|age and |
|00002d00| 77 69 6c 6c 0d 09 63 72 | 61 73 68 20 75 70 6f 6e |will..cr|ash upon|
|00002d10| 20 72 75 6e 6e 69 6e 67 | 20 69 74 2e 20 20 54 68 | running| it. Th|
|00002d20| 69 73 2c 20 72 65 6d 69 | 6e 64 20 79 6f 75 72 73 |is, remi|nd yours|
|00002d30| 65 6c 66 2c 20 69 73 20 | 61 20 66 65 61 74 75 72 |elf, is |a featur|
|00002d40| 65 20 6f 66 20 74 68 65 | 20 6d 6f 73 74 20 0d 09 |e of the| most ..|
|00002d50| 70 6f 77 65 72 66 75 6c | 20 64 65 76 65 6c 6f 70 |powerful| develop|
|00002d60| 6d 65 6e 74 20 73 79 73 | 74 65 6d 20 61 72 6f 75 |ment sys|tem arou|
|00002d70| 6e 64 2e 20 20 49 6e 20 | 6f 72 64 65 72 20 74 6f |nd. In |order to|
|00002d80| 20 62 75 69 6c 64 20 63 | 75 72 72 65 6e 74 6c 79 | build c|urrently|
|00002d90| 2c 20 74 68 65 20 6d 61 | 69 6e 0d 09 70 72 6f 67 |, the ma|in..prog|
|00002da0| 72 61 6d 20 4d 46 72 61 | 63 41 70 70 2e 70 20 73 |ram MFra|cApp.p s|
|00002db0| 68 6f 75 6c 64 20 62 65 | 20 63 6f 6d 70 69 6c 65 |hould be| compile|
|00002dc0| 64 20 77 69 74 68 20 6e | 65 77 20 24 4c 4f 41 44 |d with n|ew $LOAD|
|00002dd0| 20 66 69 6c 65 73 20 61 | 6e 64 20 74 68 65 20 38 | files a|nd the 8|
|00002de0| 38 31 0d 09 66 6c 61 67 | 20 74 75 72 6e 65 64 20 |81..flag| turned |
|00002df0| 6f 66 66 2e 20 20 41 6c | 6c 20 6f 66 20 74 68 65 |off. Al|l of the|
|00002e00| 20 4d 61 63 41 70 70 20 | 73 6f 75 72 63 65 73 20 | MacApp |sources |
|00002e10| 73 68 6f 75 6c 64 20 62 | 65 20 63 6f 6d 70 69 6c |should b|e compil|
|00002e20| 65 64 20 77 69 74 68 20 | 61 20 6e 65 77 0d 09 24 |ed with |a new..$|
|00002e30| 4c 4f 41 44 20 66 69 6c | 65 20 61 6e 64 20 38 38 |LOAD fil|e and 88|
|00002e40| 31 20 74 75 72 6e 65 64 | 20 6f 66 66 2e 20 20 54 |1 turned| off. T|
|00002e50| 68 65 20 6c 61 73 74 20 | 73 74 65 70 20 73 68 6f |he last |step sho|
|00002e60| 75 6c 64 20 62 65 20 74 | 6f 20 63 6f 6d 70 69 6c |uld be t|o compil|
|00002e70| 65 20 74 68 65 20 55 46 | 72 61 63 41 70 70 2e 70 |e the UF|racApp.p|
|00002e80| 0d 09 77 69 74 68 20 74 | 68 65 20 38 38 31 20 66 |..with t|he 881 f|
|00002e90| 6c 61 67 20 74 75 72 6e | 65 64 20 6f 6e 2c 20 61 |lag turn|ed on, a|
|00002ea0| 6e 64 20 77 69 74 68 20 | 6e 65 77 20 24 4c 4f 41 |nd with |new $LOA|
|00002eb0| 44 20 66 69 6c 65 73 20 | 61 73 20 77 65 6c 6c 2e |D files |as well.|
|00002ec0| 20 20 42 65 77 61 72 65 | 20 6f 72 0d 09 62 65 20 | Beware| or..be |
|00002ed0| 70 72 65 70 61 72 65 64 | 20 74 6f 20 73 70 65 6e |prepared| to spen|
|00002ee0| 64 20 61 20 6c 6f 74 20 | 6f 66 20 74 69 6d 65 20 |d a lot |of time |
|00002ef0| 6f 6e 20 73 6f 6d 65 74 | 68 69 6e 67 20 73 69 6c |on somet|hing sil|
|00002f00| 6c 79 2e 20 20 54 6f 20 | 73 6f 6c 76 65 20 74 68 |ly. To |solve th|
|00002f10| 69 73 20 0d 09 70 72 6f | 62 6c 65 6d 20 74 68 65 |is ..pro|blem the|
|00002f20| 20 4d 61 6b 65 20 66 69 | 6c 65 20 75 73 65 64 20 | Make fi|le used |
|00002f30| 77 69 74 68 20 46 72 61 | 63 41 70 70 20 68 61 73 |with Fra|cApp has|
|00002f40| 20 61 20 73 70 65 63 69 | 66 69 63 20 63 6f 6d 70 | a speci|fic comp|
|00002f50| 69 6c 65 20 72 75 6c 65 | 20 66 6f 72 20 0d 09 74 |ile rule| for ..t|
|00002f60| 68 65 20 55 46 72 61 63 | 41 70 70 20 66 69 6c 65 |he UFrac|App file|
|00002f70| 2e 20 20 55 46 72 61 63 | 41 70 70 20 61 6c 73 6f |. UFrac|App also|
|00002f80| 20 75 73 65 73 20 69 74 | 73 20 6f 77 6e 20 24 4c | uses it|s own $L|
|00002f90| 4f 41 44 20 66 69 6c 65 | 2c 20 74 68 61 74 20 69 |OAD file|, that i|
|00002fa0| 73 20 64 69 66 66 65 72 | 65 6e 74 0d 09 66 72 6f |s differ|ent..fro|
|00002fb0| 6d 20 74 68 65 20 4d 61 | 63 41 70 70 20 61 6e 64 |m the Ma|cApp and|
|00002fc0| 20 4d 46 72 61 63 41 70 | 70 20 6f 6e 65 73 2e 20 | MFracAp|p ones. |
|00002fd0| 20 54 68 65 20 38 38 31 | 20 66 6c 61 67 20 69 73 | The 881| flag is|
|00002fe0| 20 6e 6f 74 20 73 70 65 | 63 69 66 69 63 61 6c 6c | not spe|cificall|
|00002ff0| 79 0d 09 72 65 71 75 69 | 72 65 64 2c 20 62 75 74 |y..requi|red, but|
|00003000| 20 69 74 20 6d 61 6b 65 | 73 20 63 6f 64 65 20 74 | it make|s code t|
|00003010| 68 61 74 20 75 73 65 73 | 20 74 68 65 20 38 38 31 |hat uses| the 881|
|00003020| 20 64 69 72 65 63 74 6c | 79 20 69 6e 73 74 65 61 | directl|y instea|
|00003030| 64 20 6f 66 20 67 6f 69 | 6e 67 0d 09 74 68 72 6f |d of goi|ng..thro|
|00003040| 75 67 68 20 53 41 4e 45 | 20 66 6f 72 20 61 20 73 |ugh SANE| for a s|
|00003050| 70 65 65 64 20 75 70 20 | 6f 66 20 61 62 6f 75 74 |peed up |of about|
|00003060| 20 31 30 20 74 69 6d 65 | 73 2e 20 20 53 69 6e 63 | 10 time|s. Sinc|
|00003070| 65 20 77 65 20 61 72 65 | 20 73 70 65 65 64 20 66 |e we are| speed f|
|00003080| 72 65 61 6b 73 0d 09 68 | 65 72 65 20 61 73 20 77 |reaks..h|ere as w|
|00003090| 65 6c 6c 2c 20 74 68 65 | 20 38 38 31 20 6f 70 74 |ell, the| 881 opt|
|000030a0| 69 6f 6e 20 68 61 64 20 | 74 6f 20 62 65 20 75 73 |ion had |to be us|
|000030b0| 65 64 2e 20 20 47 69 76 | 65 6e 20 74 68 65 20 70 |ed. Giv|en the p|
|000030c0| 72 6f 62 6c 65 6d 73 2c | 20 49 20 77 6f 75 6c 64 |roblems,| I would|
|000030d0| 0d 09 70 72 6f 62 61 62 | 6c 79 20 73 6b 69 70 20 |..probab|ly skip |
|000030e0| 74 68 65 20 38 38 31 20 | 6f 70 74 69 6f 6e 20 61 |the 881 |option a|
|000030f0| 6e 64 20 64 6f 20 74 68 | 65 20 74 69 6d 65 20 63 |nd do th|e time c|
|00003100| 72 69 74 69 63 61 6c 20 | 70 69 65 63 65 73 20 69 |ritical |pieces i|
|00003110| 6e 20 61 73 73 65 6d 62 | 6c 65 72 2e 0d 09 0d 09 |n assemb|ler.....|
|00003120| 49 66 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 20 6b |If you w|ant to k|
|00003130| 6e 6f 77 20 68 6f 77 20 | 6c 6f 6e 67 20 61 20 66 |now how |long a f|
|00003140| 72 61 63 74 61 6c 20 74 | 6f 6f 6b 20 74 6f 20 63 |ractal t|ook to c|
|00003150| 61 6c 63 75 6c 61 74 65 | 20 74 68 65 72 65 20 69 |alculate| there i|
|00003160| 73 20 61 20 74 69 6d 65 | 0d 09 73 74 61 6d 70 20 |s a time|..stamp |
|00003170| 73 61 76 65 64 20 69 6e | 20 74 68 65 20 66 69 6c |saved in| the fil|
|00003180| 65 20 68 65 61 64 65 72 | 2e 20 20 49 74 20 69 73 |e header|. It is|
|00003190| 20 6e 6f 20 6c 6f 6e 67 | 65 72 20 64 72 61 77 6e | no long|er drawn|
|000031a0| 20 69 6e 20 74 68 65 20 | 77 69 6e 64 6f 77 20 73 | in the |window s|
|000031b0| 69 6e 63 65 0d 09 69 74 | 20 69 73 20 6e 6f 74 20 |ince..it| is not |
|000031c0| 61 63 63 75 72 61 74 65 | 20 77 68 65 6e 20 74 68 |accurate| when th|
|000031d0| 65 20 70 72 6f 67 72 61 | 6d 20 68 61 73 20 72 75 |e progra|m has ru|
|000031e0| 6e 20 69 6e 20 74 68 65 | 20 62 61 63 6b 67 72 6f |n in the| backgro|
|000031f0| 75 6e 64 20 6f 72 20 69 | 66 20 74 68 65 72 65 0d |und or i|f there.|
|00003200| 09 61 72 65 20 6d 75 6c | 74 69 70 6c 65 20 64 6f |.are mul|tiple do|
|00003210| 63 75 6d 65 6e 74 73 20 | 6f 70 65 6e 2e 20 20 54 |cuments |open. T|
|00003220| 68 69 73 20 63 6f 75 6c | 64 20 62 65 20 61 64 64 |his coul|d be add|
|00003230| 65 64 20 61 67 61 69 6e | 20 69 66 20 64 65 73 69 |ed again| if desi|
|00003240| 72 65 64 2e 0d 09 0d 09 | 4e 6f 74 61 62 6c 79 20 |red.....|Notably |
|00003250| 49 20 61 6d 20 61 77 61 | 72 65 20 6f 66 20 74 68 |I am awa|re of th|
|00003260| 65 20 66 61 63 74 20 74 | 68 61 74 20 74 68 69 73 |e fact t|hat this|
|00003270| 20 70 72 6f 67 72 61 6d | 20 64 6f 65 73 20 6e 6f | program| does no|
|00003280| 74 20 72 65 61 6c 6c 79 | 20 63 61 6c 63 75 6c 61 |t really| calcula|
|00003290| 74 65 0d 09 46 72 61 63 | 74 61 6c 73 2e 20 20 41 |te..Frac|tals. A|
|000032a0| 63 74 75 61 6c 6c 79 20 | 69 74 20 63 61 6c 63 75 |ctually |it calcu|
|000032b0| 6c 61 74 65 73 20 61 6e | 64 20 64 69 73 70 6c 61 |lates an|d displa|
|000032c0| 79 73 20 74 68 65 20 4d | 61 6e 64 65 6c 62 72 6f |ys the M|andelbro|
|000032d0| 74 20 73 65 74 20 77 68 | 69 63 68 20 69 73 0d 09 |t set wh|ich is..|
|000032e0| 6e 6f 74 20 73 65 6c 66 | 2d 73 69 6d 69 6c 61 72 |not self|-similar|
|000032f0| 20 73 6f 20 69 74 20 63 | 61 6e 6e 6f 74 20 72 65 | so it c|annot re|
|00003300| 61 6c 6c 79 20 62 65 20 | 63 61 6c 6c 65 64 20 61 |ally be |called a|
|00003310| 20 66 72 61 63 74 61 6c | 2e 20 20 49 74 20 69 73 | fractal|. It is|
|00003320| 20 64 69 73 74 72 65 73 | 73 69 6e 67 20 74 6f 0d | distres|sing to.|
|00003330| 09 61 64 64 20 74 6f 20 | 74 68 65 20 63 6f 6e 66 |.add to |the conf|
|00003340| 75 73 69 6f 6e 20 61 73 | 20 74 6f 20 77 68 61 74 |usion as| to what|
|00003350| 20 66 72 61 63 74 61 6c | 73 20 61 72 65 2c 20 62 | fractal|s are, b|
|00003360| 75 74 20 69 74 20 69 73 | 20 74 6f 6f 20 6c 61 74 |ut it is| too lat|
|00003370| 65 2e 20 20 46 6f 72 20 | 6d 6f 72 65 0d 09 69 6e |e. For |more..in|
|00003380| 66 6f 72 6d 61 74 69 6f | 6e 20 6f 6e 20 46 72 61 |formatio|n on Fra|
|00003390| 63 74 61 6c 73 20 61 6e | 64 20 74 68 65 20 4d 61 |ctals an|d the Ma|
|000033a0| 6e 64 65 6c 62 72 6f 74 | 20 73 65 74 20 28 6e 6f |ndelbrot| set (no|
|000033b0| 20 75 6d 6c 61 75 74 20 | 6f 6e 20 74 68 65 20 6f | umlaut |on the o|
|000033c0| 29 2c 20 79 6f 75 0d 09 | 63 6f 75 6c 64 20 73 65 |), you..|could se|
|000033d0| 65 20 4d 61 6e 64 65 6c | 62 72 6f 74 d5 73 20 62 |e Mandel|brot.s b|
|000033e0| 6f 6f 6b 20 d4 54 68 65 | 20 46 72 61 63 74 61 6c |ook .The| Fractal|
|000033f0| 20 47 65 6f 6d 65 74 72 | 79 20 6f 66 20 4e 61 74 | Geometr|y of Nat|
|00003400| 75 72 65 d5 2c 20 62 75 | 74 20 69 74 20 69 73 20 |ure., bu|t it is |
|00003410| 0d 09 70 72 65 74 74 79 | 20 6d 61 74 68 65 6d 61 |..pretty| mathema|
|00003420| 74 69 63 61 6c 20 61 6e | 64 20 6e 6f 74 20 61 6c |tical an|d not al|
|00003430| 6c 20 74 68 61 74 20 68 | 65 6c 70 66 75 6c 2e 20 |l that h|elpful. |
|00003440| 20 41 20 62 65 74 74 65 | 72 20 73 6f 75 72 63 65 | A bette|r source|
|00003450| 20 69 73 20 74 68 65 0d | 09 50 65 69 74 67 65 6e | is the.|.Peitgen|
|00003460| 2d 52 69 63 68 74 65 72 | 20 62 6f 6f 6b 20 d4 54 |-Richter| book .T|
|00003470| 68 65 20 42 65 61 75 74 | 79 20 6f 66 20 46 72 61 |he Beaut|y of Fra|
|00003480| 63 74 61 6c 73 d5 2c 20 | 77 68 69 63 68 20 68 61 |ctals., |which ha|
|00003490| 73 20 61 20 64 6f 20 69 | 74 20 79 6f 75 72 73 65 |s a do i|t yourse|
|000034a0| 6c 66 0d 09 73 65 63 74 | 69 6f 6e 20 69 6e 20 74 |lf..sect|ion in t|
|000034b0| 68 65 20 62 61 63 6b 2e | 0d 09 0d 09 54 68 65 20 |he back.|....The |
|000034c0| 70 72 6f 67 72 61 6d 20 | 69 73 20 73 74 72 75 63 |program |is struc|
|000034d0| 74 75 72 65 64 20 70 72 | 69 6d 61 72 69 6c 79 20 |tured pr|imarily |
|000034e0| 61 72 6f 75 6e 64 20 74 | 68 65 20 64 6f 63 75 6d |around t|he docum|
|000034f0| 65 6e 74 2e 20 20 54 68 | 65 20 64 6f 63 75 6d 65 |ent. Th|e docume|
|00003500| 6e 74 20 69 73 0d 09 74 | 68 65 20 6f 62 6a 65 63 |nt is..t|he objec|
|00003510| 74 20 74 6f 20 63 72 65 | 61 74 65 20 61 6e 64 20 |t to cre|ate and |
|00003520| 6d 61 69 6e 74 61 69 6e | 20 74 68 65 20 6f 66 66 |maintain| the off|
|00003530| 73 63 72 65 65 6e 20 67 | 44 65 76 69 63 65 20 26 |screen g|Device &|
|00003540| 20 70 6f 72 74 2e 20 20 | 54 68 65 20 64 6f 63 75 | port. |The docu|
|00003550| 6d 65 6e 74 0d 09 63 6f | 6e 76 65 72 74 73 20 74 |ment..co|nverts t|
|00003560| 68 65 20 6f 66 66 73 63 | 72 65 65 6e 20 64 61 74 |he offsc|reen dat|
|00003570| 61 20 69 6e 74 6f 20 61 | 20 50 49 43 54 20 66 69 |a into a| PICT fi|
|00003580| 6c 65 20 77 68 65 6e 20 | 73 61 76 65 64 20 6f 72 |le when |saved or|
|00003590| 20 72 65 73 74 6f 72 65 | 64 2e 20 20 54 68 65 0d | restore|d. The.|
|000035a0| 09 64 6f 63 75 6d 65 6e | 74 20 61 6c 73 6f 20 64 |.documen|t also d|
|000035b0| 6f 65 73 20 74 68 65 20 | 63 61 6c 63 75 6c 61 74 |oes the |calculat|
|000035c0| 69 6f 6e 20 6f 66 20 74 | 68 65 20 66 72 61 63 74 |ion of t|he fract|
|000035d0| 61 6c 2c 20 6b 65 65 70 | 69 6e 67 20 74 68 65 20 |al, keep|ing the |
|000035e0| 6f 66 66 73 63 72 65 65 | 6e 20 64 61 74 61 0d 09 |offscree|n data..|
|000035f0| 75 70 20 74 6f 20 64 61 | 74 61 20 61 73 20 69 74 |up to da|ta as it|
|00003600| 20 67 6f 65 73 20 61 6c | 6f 6e 67 2e 20 20 54 68 | goes al|ong. Th|
|00003610| 65 20 76 69 65 77 20 6f | 6e 6c 79 20 68 61 6e 64 |e view o|nly hand|
|00003620| 6c 65 73 20 74 61 6b 69 | 6e 67 20 74 68 65 20 64 |les taki|ng the d|
|00003630| 6f 63 75 6d 65 6e 74 20 | 64 61 74 61 0d 09 61 6e |ocument |data..an|
|00003640| 64 20 64 69 73 70 6c 61 | 79 69 6e 67 20 69 74 2e |d displa|ying it.|
|00003650| 0d 09 0d 09 46 6f 72 20 | 74 68 65 20 7a 6f 6f 6d |....For |the zoom|
|00003660| 20 6f 70 65 72 61 74 69 | 6f 6e 2c 20 74 68 65 72 | operati|on, ther|
|00003670| 65 20 77 61 73 20 6e 6f | 20 72 65 61 6c 6c 79 20 |e was no| really |
|00003680| 67 72 65 61 74 20 77 61 | 79 20 74 6f 20 68 61 6e |great wa|y to han|
|00003690| 64 6c 65 20 74 68 65 20 | 6e 65 77 0d 09 64 6f 63 |dle the |new..doc|
|000036a0| 75 6d 65 6e 74 20 63 61 | 73 65 20 62 61 73 65 64 |ument ca|se based|
|000036b0| 20 6f 6e 20 61 6e 6f 74 | 68 65 72 20 64 6f 63 75 | on anot|her docu|
|000036c0| 6d 65 6e 74 2e 20 20 54 | 68 69 73 20 69 73 20 61 |ment. T|his is a|
|000036d0| 20 6c 69 74 74 6c 65 20 | 73 74 72 61 6e 67 65 20 | little |strange |
|000036e0| 74 6f 20 62 65 20 0d 09 | 64 6f 69 6e 67 2c 20 61 |to be ..|doing, a|
|000036f0| 6e 64 20 74 68 65 20 73 | 74 72 75 63 74 75 72 65 |nd the s|tructure|
|00003700| 20 6f 66 20 4d 61 63 41 | 70 70 20 77 61 73 20 73 | of MacA|pp was s|
|00003710| 75 63 68 20 74 68 61 74 | 20 77 65 20 63 6f 75 6c |uch that| we coul|
|00003720| 64 6e d5 74 20 67 65 74 | 20 74 6f 20 74 68 65 20 |dn.t get| to the |
|00003730| 0d 09 64 61 74 61 20 64 | 65 73 69 72 65 64 20 61 |..data d|esired a|
|00003740| 74 20 74 68 65 20 72 69 | 67 68 74 20 74 69 6d 65 |t the ri|ght time|
|00003750| 2e 20 20 54 68 65 20 6c | 6f 67 69 63 61 6c 20 70 |. The l|ogical p|
|00003760| 6c 61 63 65 20 74 6f 20 | 70 75 74 20 69 74 20 69 |lace to |put it i|
|00003770| 6e 20 61 74 20 0d 09 44 | 6f 4d 61 6b 65 44 6f 63 |n at ..D|oMakeDoc|
|00003780| 75 6d 65 6e 74 20 77 61 | 73 20 74 6f 6f 20 65 61 |ument wa|s too ea|
|00003790| 72 6c 79 20 74 6f 20 68 | 61 76 65 20 74 68 65 20 |rly to h|ave the |
|000037a0| 67 44 65 76 69 63 65 20 | 61 6c 6c 6f 63 61 74 65 |gDevice |allocate|
|000037b0| 64 20 61 6e 64 20 72 65 | 61 64 79 0d 09 74 6f 20 |d and re|ady..to |
|000037c0| 73 74 61 72 74 20 6d 6f | 72 65 20 73 74 75 66 66 |start mo|re stuff|
|000037d0| 2e 20 20 54 68 65 20 70 | 72 6f 62 6c 65 6d 20 77 |. The p|roblem w|
|000037e0| 61 73 20 72 65 73 6f 6c | 76 65 64 20 62 79 20 75 |as resol|ved by u|
|000037f0| 73 69 6e 67 20 67 6c 6f | 62 61 6c 20 76 61 72 69 |sing glo|bal vari|
|00003800| 61 62 6c 65 73 0d 09 74 | 6f 20 74 72 61 6e 73 6d |ables..t|o transm|
|00003810| 69 74 20 74 68 65 20 69 | 6e 66 6f 72 6d 61 74 69 |it the i|nformati|
|00003820| 6f 6e 20 74 6f 20 74 68 | 65 20 6f 74 68 65 72 20 |on to th|e other |
|00003830| 70 69 65 63 65 20 6f 66 | 20 74 68 65 20 70 72 6f |piece of| the pro|
|00003840| 67 72 61 6d 20 74 68 61 | 74 0d 09 6d 69 67 68 74 |gram tha|t..might|
|00003850| 20 6e 65 65 64 20 69 74 | 2e 20 20 45 73 73 65 6e | need it|. Essen|
|00003860| 74 69 61 6c 6c 79 20 44 | 6f 49 6e 69 74 69 61 6c |tially D|oInitial|
|00003870| 53 74 61 74 65 20 64 65 | 63 69 64 65 73 20 69 66 |State de|cides if|
|00003880| 20 74 68 69 73 20 69 73 | 20 61 20 62 72 61 6e 64 | this is| a brand|
|00003890| 20 6e 65 77 0d 09 62 61 | 73 65 20 6c 65 76 65 6c | new..ba|se level|
|000038a0| 20 64 6f 63 75 6d 65 6e | 74 20 6f 72 20 61 20 7a | documen|t or a z|
|000038b0| 6f 6f 6d 20 69 6e 20 62 | 61 73 65 64 20 6f 6e 20 |oom in b|ased on |
|000038c0| 74 68 65 20 73 74 61 74 | 65 20 6f 66 20 74 68 65 |the stat|e of the|
|000038d0| 20 67 6c 6f 62 61 6c 20 | 76 61 72 69 61 62 6c 65 | global |variable|
|000038e0| 73 2e 0d 09 0d 09 54 68 | 65 20 4d 61 63 41 70 70 |s.....Th|e MacApp|
|000038f0| 20 6d 65 6d 6f 72 79 20 | 6d 61 6e 61 67 65 6d 65 | memory |manageme|
|00003900| 6e 74 20 61 70 70 72 6f | 61 63 68 20 69 73 20 75 |nt appro|ach is u|
|00003910| 73 65 64 20 61 73 20 77 | 65 6c 6c 2e 20 20 54 68 |sed as w|ell. Th|
|00003920| 65 20 62 69 67 20 70 69 | 65 63 65 73 0d 09 75 73 |e big pi|eces..us|
|00003930| 65 64 20 62 79 20 74 68 | 65 20 44 6f 63 75 6d 65 |ed by th|e Docume|
|00003940| 6e 74 73 20 63 6f 6d 65 | 20 6f 75 74 20 6f 66 20 |nts come| out of |
|00003950| 70 65 72 6d 61 6e 65 6e | 74 20 6d 65 6d 6f 72 79 |permanen|t memory|
|00003960| 2c 20 68 65 6c 70 69 6e | 67 20 74 6f 20 61 76 6f |, helpin|g to avo|
|00003970| 69 64 0d 09 61 20 63 72 | 61 73 68 20 66 72 6f 6d |id..a cr|ash from|
|00003980| 20 6e 6f 20 6d 65 6d 6f | 72 79 2e 20 20 57 68 65 | no memo|ry. Whe|
|00003990| 6e 20 77 65 20 61 6c 6c | 6f 63 61 74 65 20 73 6f |n we all|ocate so|
|000039a0| 6d 65 74 68 69 6e 67 20 | 74 68 61 74 20 77 69 6c |mething |that wil|
|000039b0| 6c 20 62 65 20 74 68 72 | 6f 77 6e 0d 09 61 77 61 |l be thr|own..awa|
|000039c0| 79 20 69 6d 6d 65 64 69 | 61 74 65 6c 79 2c 20 6c |y immedi|ately, l|
|000039d0| 69 6b 65 20 61 20 73 70 | 61 72 65 20 63 6f 6c 6f |ike a sp|are colo|
|000039e0| 72 20 74 61 62 6c 65 20 | 6f 72 20 73 6f 6d 65 74 |r table |or somet|
|000039f0| 68 69 6e 67 2c 20 69 74 | 20 6f 66 20 63 6f 75 72 |hing, it| of cour|
|00003a00| 73 65 0d 09 63 6f 6d 65 | 73 20 6f 75 74 20 6f 66 |se..come|s out of|
|00003a10| 20 6e 6f 72 6d 61 6c 20 | 6d 65 6d 6f 72 79 2e 20 | normal |memory. |
|00003a20| 20 57 65 20 64 69 64 20 | 6e 6f 74 20 64 6f 20 61 | We did |not do a|
|00003a30| 20 66 75 6c 6c 20 62 6c | 6f 77 6e 20 6d 65 6d 6f | full bl|own memo|
|00003a40| 72 79 20 61 6e 61 6c 79 | 73 69 73 0d 09 6f 66 20 |ry analy|sis..of |
|00003a50| 74 68 65 20 70 72 6f 67 | 72 61 6d 20 73 69 6e 63 |the prog|ram sinc|
|00003a60| 65 20 69 74 20 69 73 20 | 73 75 63 68 20 61 20 6d |e it is |such a m|
|00003a70| 65 6d 6f 72 79 20 68 6f | 67 20 61 6e 79 77 61 79 |emory ho|g anyway|
|00003a80| 2e 20 20 54 68 65 20 6d | 65 6d 21 20 72 65 73 6f |. The m|em! reso|
|00003a90| 75 72 63 65 0d 09 69 73 | 20 73 65 74 20 75 70 20 |urce..is| set up |
|00003aa0| 69 6e 20 61 20 66 6f 72 | 6d 20 74 68 61 74 20 69 |in a for|m that i|
|00003ab0| 73 20 72 6f 75 67 68 6c | 79 20 63 6c 6f 73 65 20 |s roughl|y close |
|00003ac0| 28 61 20 62 69 74 20 68 | 69 67 68 29 20 77 69 74 |(a bit h|igh) wit|
|00003ad0| 68 6f 75 74 20 74 72 79 | 69 6e 67 20 74 6f 20 62 |hout try|ing to b|
|00003ae0| 65 0d 09 65 78 74 72 61 | 20 61 63 63 75 72 61 74 |e..extra| accurat|
|00003af0| 65 2e 20 20 57 68 65 6e | 20 61 20 64 6f 63 75 6d |e. When| a docum|
|00003b00| 65 6e 74 20 74 61 6b 65 | 73 20 34 30 30 4b 20 6f |ent take|s 400K o|
|00003b10| 66 20 52 41 4d 20 74 6f | 20 6f 70 65 6e 20 69 74 |f RAM to| open it|
|00003b20| 20 68 61 72 64 6c 79 20 | 0d 09 73 65 65 6d 73 20 | hardly |..seems |
|00003b30| 72 65 6c 65 76 61 6e 74 | 20 74 6f 20 6d 61 6b 65 |relevant| to make|
|00003b40| 20 73 75 72 65 20 74 68 | 65 20 6d 65 6d 21 20 69 | sure th|e mem! i|
|00003b50| 73 20 61 63 63 75 72 61 | 74 65 20 74 6f 20 32 4b |s accura|te to 2K|
|00003b60| 2e 20 20 42 65 63 61 75 | 73 65 20 6f 66 20 74 68 |. Becau|se of th|
|00003b70| 69 73 0d 09 73 6f 6d 65 | 77 68 61 74 20 63 61 76 |is..some|what cav|
|00003b80| 61 6c 69 65 72 20 61 70 | 70 72 6f 61 63 68 20 79 |alier ap|proach y|
|00003b90| 6f 75 20 6d 61 79 20 6e | 6f 74 20 62 65 20 61 62 |ou may n|ot be ab|
|00003ba0| 6c 65 20 74 6f 20 6f 70 | 65 6e 20 61 20 64 6f 63 |le to op|en a doc|
|00003bb0| 75 6d 65 6e 74 20 69 6e | 0d 09 61 20 66 65 77 20 |ument in|..a few |
|00003bc0| 63 61 73 65 73 20 77 68 | 65 72 65 20 79 6f 75 20 |cases wh|ere you |
|00003bd0| 72 65 61 6c 6c 79 20 73 | 68 6f 75 6c 64 20 62 65 |really s|hould be|
|00003be0| 20 61 62 6c 65 20 74 6f | 2e 20 20 54 68 65 20 6d | able to|. The m|
|00003bf0| 65 6d 21 20 69 6e 20 75 | 73 65 20 6f 66 20 34 30 |em! in u|se of 40|
|00003c00| 4b 0d 09 69 73 20 63 6c | 6f 73 65 20 77 69 74 68 |K..is cl|ose with|
|00003c10| 20 61 20 2b 32 4b 2f 2d | 31 30 4b 20 65 72 72 6f | a +2K/-|10K erro|
|00003c20| 72 20 6f 6e 20 68 6f 77 | 20 62 69 67 20 69 74 20 |r on how| big it |
|00003c30| 73 68 6f 75 6c 64 20 72 | 65 61 6c 6c 79 20 62 65 |should r|eally be|
|00003c40| 2e 0d 09 0d 09 54 68 65 | 20 74 69 6d 65 20 73 74 |.....The| time st|
|00003c50| 61 6d 70 20 61 73 20 74 | 68 65 20 65 6c 61 70 73 |amp as t|he elaps|
|00003c60| 65 64 54 69 6d 65 20 66 | 69 65 6c 64 20 69 6e 20 |edTime f|ield in |
|00003c70| 74 68 65 20 46 72 61 63 | 48 65 61 64 65 72 20 69 |the Frac|Header i|
|00003c80| 73 20 6e 6f 74 20 66 75 | 6c 6c 79 0d 09 61 63 63 |s not fu|lly..acc|
|00003c90| 75 72 61 74 65 2c 20 73 | 6f 20 69 74 20 69 73 20 |urate, s|o it is |
|00003ca0| 6e 6f 20 6c 6f 6e 67 65 | 72 20 64 69 73 70 6c 61 |no longe|r displa|
|00003cb0| 79 65 64 2e 20 20 43 75 | 72 72 65 6e 74 6c 79 20 |yed. Cu|rrently |
|00003cc0| 69 74 20 69 73 20 73 65 | 74 20 61 73 20 61 6e 20 |it is se|t as an |
|00003cd0| 65 6c 61 70 73 65 64 0d | 09 74 69 6d 65 20 66 72 |elapsed.|.time fr|
|00003ce0| 6f 6d 20 77 68 65 6e 20 | 69 74 20 77 61 73 20 73 |om when |it was s|
|00003cf0| 74 61 72 74 65 64 20 74 | 6f 20 77 68 65 6e 20 69 |tarted t|o when i|
|00003d00| 74 20 65 6e 64 65 64 2c | 20 77 68 69 63 68 20 68 |t ended,| which h|
|00003d10| 61 73 20 61 20 6e 75 6d | 62 65 72 0d 09 6f 66 20 |as a num|ber..of |
|00003d20| 70 72 6f 62 6c 65 6d 73 | 2e 20 20 54 68 69 73 20 |problems|. This |
|00003d30| 77 69 6c 6c 20 62 65 20 | 6d 61 64 65 20 6d 6f 72 |will be |made mor|
|00003d40| 65 20 61 63 63 75 72 61 | 74 65 20 69 6e 20 74 68 |e accura|te in th|
|00003d50| 65 20 66 75 74 75 72 65 | 2c 20 70 72 6f 62 61 62 |e future|, probab|
|00003d60| 6c 79 0d 09 75 73 69 6e | 67 20 61 20 63 61 6c 63 |ly..usin|g a calc|
|00003d70| 75 6c 61 74 69 6f 6e 20 | 74 68 61 74 20 67 69 76 |ulation |that giv|
|00003d80| 65 73 20 75 73 20 61 20 | 6f 6e 63 65 20 74 68 72 |es us a |once thr|
|00003d90| 6f 75 67 68 20 74 68 65 | 20 6c 6f 6f 70 20 63 61 |ough the| loop ca|
|00003da0| 6c 63 75 6c 61 74 69 6f | 6e 0d 09 69 6e 20 75 6e |lculatio|n..in un|
|00003db0| 69 74 73 20 6f 66 20 54 | 69 6d 65 44 42 52 41 2c |its of T|imeDBRA,|
|00003dc0| 20 73 6f 20 77 65 20 63 | 61 6e 20 62 65 20 6d 6f | so we c|an be mo|
|00003dd0| 72 65 20 6d 61 63 68 69 | 6e 65 20 69 6e 64 65 70 |re machi|ne indep|
|00003de0| 65 6e 64 65 6e 74 2e 0d | 09 0d 09 54 68 65 20 51 |endent..|...The Q|
|00003df0| 75 69 63 6b 44 72 61 77 | 20 42 6f 74 74 6c 65 4e |uickDraw| BottleN|
|00003e00| 65 63 6b 73 20 61 72 65 | 20 75 73 65 64 20 74 6f |ecks are| used to|
|00003e10| 20 62 6f 74 68 20 72 65 | 61 64 20 61 6e 64 20 77 | both re|ad and w|
|00003e20| 72 69 74 65 20 74 68 65 | 20 61 63 74 75 61 6c 0d |rite the| actual.|
|00003e30| 09 66 72 61 63 74 61 6c | 20 64 61 74 61 20 66 72 |.fractal| data fr|
|00003e40| 6f 6d 2f 74 6f 20 74 68 | 65 20 64 69 73 6b 2e 20 |om/to th|e disk. |
|00003e50| 20 54 68 69 73 20 69 73 | 20 64 6f 6e 65 20 73 69 | This is| done si|
|00003e60| 6e 63 65 20 74 68 65 20 | 64 61 74 61 20 69 6e 20 |nce the |data in |
|00003e70| 74 68 65 20 64 6f 63 75 | 6d 65 6e 74 0d 09 6d 61 |the docu|ment..ma|
|00003e80| 79 20 62 65 20 76 65 72 | 79 20 6c 61 72 67 65 20 |y be ver|y large |
|00003e90| 28 31 30 30 4b 29 20 61 | 6e 64 20 69 66 20 77 65 |(100K) a|nd if we|
|00003ea0| 20 6a 75 73 74 20 73 70 | 6f 6f 6c 20 74 68 65 20 | just sp|ool the |
|00003eb0| 64 61 74 61 20 66 72 6f | 6d 20 74 68 65 20 66 69 |data fro|m the fi|
|00003ec0| 6c 65 0d 09 77 65 20 64 | 6f 6e 27 74 20 61 63 74 |le..we d|on't act|
|00003ed0| 75 61 6c 6c 79 20 68 61 | 76 65 20 74 6f 20 75 73 |ually ha|ve to us|
|00003ee0| 65 20 74 68 61 74 20 65 | 78 74 72 61 20 68 75 6e |e that e|xtra hun|
|00003ef0| 6b 20 6f 66 20 6d 65 6d | 6f 72 79 2e 20 20 57 65 |k of mem|ory. We|
|00003f00| 20 68 61 76 65 20 74 6f | 20 72 65 61 64 0d 09 74 | have to| read..t|
|00003f10| 68 65 20 64 61 74 61 20 | 61 6e 79 77 61 79 2c 20 |he data |anyway, |
|00003f20| 73 6f 20 77 65 20 67 6f | 20 61 68 65 61 64 20 61 |so we go| ahead a|
|00003f30| 6e 64 20 6a 75 73 74 20 | 72 65 61 64 20 69 74 20 |nd just |read it |
|00003f40| 69 6e 20 61 73 20 77 65 | 20 70 6c 61 79 20 69 74 |in as we| play it|
|00003f50| 20 62 61 63 6b 2e 0d 09 | 41 73 20 69 74 20 69 73 | back...|As it is|
|00003f60| 20 70 6c 61 79 65 64 20 | 62 61 63 6b 20 69 74 20 | played |back it |
|00003f70| 67 6f 65 73 20 69 6e 74 | 6f 20 74 68 65 20 6f 66 |goes int|o the of|
|00003f80| 66 73 63 72 65 65 6e 20 | 67 44 65 76 69 63 65 27 |fscreen |gDevice'|
|00003f90| 73 20 70 69 78 4d 61 70 | 2c 20 73 6f 20 77 65 0d |s pixMap|, so we.|
|00003fa0| 09 68 61 76 65 20 74 68 | 65 20 64 61 74 61 20 74 |.have th|e data t|
|00003fb0| 6f 20 64 69 73 70 6c 61 | 79 2e 20 20 4e 6f 20 6d |o displa|y. No m|
|00003fc0| 65 6d 6f 72 79 20 68 69 | 74 20 66 6f 72 20 74 68 |emory hi|t for th|
|00003fd0| 65 20 64 6f 63 75 6d 65 | 6e 74 20 69 73 20 61 20 |e docume|nt is a |
|00003fe0| 62 69 67 20 77 69 6e 2e | 0d 09 57 68 65 6e 20 77 |big win.|..When w|
|00003ff0| 72 69 74 69 6e 67 20 74 | 68 65 20 64 61 74 61 2c |riting t|he data,|
|00004000| 20 74 68 65 20 73 61 6d | 65 20 74 68 69 6e 67 20 | the sam|e thing |
|00004010| 69 73 20 74 72 75 65 20 | 73 6f 20 77 65 20 64 6f |is true |so we do|
|00004020| 6e 27 74 20 68 61 76 65 | 20 74 6f 20 68 61 76 65 |n't have| to have|
|00004030| 0d 09 61 20 68 75 67 65 | 20 68 61 6e 64 6c 65 20 |..a huge| handle |
|00004040| 74 6f 20 68 6f 6c 64 20 | 74 68 65 20 70 69 63 74 |to hold |the pict|
|00004050| 75 72 65 20 64 61 74 61 | 20 69 74 73 65 6c 66 2e |ure data| itself.|
|00004060| 20 20 57 65 20 61 6c 73 | 6f 20 61 76 6f 69 64 20 | We als|o avoid |
|00004070| 74 68 65 20 70 72 6f 62 | 6c 65 6d 0d 09 6f 66 20 |the prob|lem..of |
|00004080| 6e 6f 74 20 68 61 76 69 | 6e 67 20 65 6e 6f 75 67 |not havi|ng enoug|
|00004090| 68 20 6d 65 6d 6f 72 79 | 20 74 6f 20 63 72 65 61 |h memory| to crea|
|000040a0| 74 65 20 74 68 65 20 70 | 69 63 74 75 72 65 20 69 |te the p|icture i|
|000040b0| 6e 20 74 68 65 20 66 69 | 72 73 74 20 70 6c 61 63 |n the fi|rst plac|
|000040c0| 65 2c 0d 09 6d 61 6b 69 | 6e 67 20 61 20 64 6f 63 |e,..maki|ng a doc|
|000040d0| 75 6d 65 6e 74 20 75 6e | 73 61 76 65 61 62 6c 65 |ument un|saveable|
|000040e0| 2e 20 20 54 68 61 74 20 | 69 73 20 70 61 72 74 69 |. That |is parti|
|000040f0| 63 75 61 6c 61 72 6c 79 | 20 61 6e 6e 6f 79 69 6e |cualarly| annoyin|
|00004100| 67 2c 20 61 6e 64 0d 09 | 69 73 20 65 61 73 79 20 |g, and..|is easy |
|00004110| 74 6f 20 61 76 6f 69 64 | 20 75 73 69 6e 67 20 74 |to avoid| using t|
|00004120| 68 65 20 73 70 6f 6f 6c | 69 6e 67 20 61 70 70 72 |he spool|ing appr|
|00004130| 6f 61 63 68 2e 20 20 20 | 54 68 65 20 64 72 61 77 |oach. |The draw|
|00004140| 62 61 63 6b 20 68 65 72 | 65 20 69 73 20 74 68 61 |back her|e is tha|
|00004150| 74 0d 09 74 68 65 20 73 | 70 6f 6f 6c 69 6e 67 20 |t..the s|pooling |
|00004160| 70 72 6f 63 65 73 73 20 | 73 6c 6f 77 73 20 64 6f |process |slows do|
|00004170| 77 6e 20 6f 70 65 6e 69 | 6e 67 20 61 6e 64 20 63 |wn openi|ng and c|
|00004180| 6c 6f 73 69 6e 67 20 64 | 6f 63 75 6d 65 6e 74 73 |losing d|ocuments|
|00004190| 20 72 61 74 68 65 72 0d | 09 73 65 76 65 72 65 6c | rather.|.severel|
|000041a0| 79 2c 20 73 69 6e 63 65 | 20 69 74 20 62 72 65 61 |y, since| it brea|
|000041b0| 6b 73 20 75 70 20 61 20 | 6c 6f 6e 67 20 72 65 61 |ks up a |long rea|
|000041c0| 64 2f 77 72 69 74 65 20 | 6f 70 65 72 61 74 69 6f |d/write |operatio|
|000041d0| 6e 20 69 6e 74 6f 20 68 | 75 6e 64 72 65 64 73 20 |n into h|undreds |
|000041e0| 6f 66 0d 09 73 6d 61 6c | 6c 20 6f 6e 65 73 2e 0d |of..smal|l ones..|
|000041f0| 09 0d 09 57 69 74 68 20 | 74 68 61 6e 6b 73 20 74 |...With |thanks t|
|00004200| 6f 20 53 6b 69 70 70 79 | 20 42 6c 61 69 72 20 66 |o Skippy| Blair f|
|00004210| 6f 72 20 74 68 65 20 64 | 69 73 63 75 73 73 69 6f |or the d|iscussio|
|00004220| 6e 73 20 6f 66 20 63 6f | 6c 6f 72 20 51 75 69 63 |ns of co|lor Quic|
|00004230| 6b 44 72 61 77 20 61 6e | 64 20 74 68 65 20 0d 09 |kDraw an|d the ..|
|00004240| 50 61 6c 65 74 74 65 20 | 4d 61 6e 61 67 65 72 2e |Palette |Manager.|
|00004250| 20 20 54 68 61 6e 6b 73 | 20 74 6f 20 44 61 72 69 | Thanks| to Dari|
|00004260| 6e 20 41 64 6c 65 72 20 | 66 6f 72 20 66 75 72 74 |n Adler |for furt|
|00004270| 68 65 72 20 64 69 73 63 | 75 73 73 69 6f 6e 20 6f |her disc|ussion o|
|00004280| 66 20 74 68 65 20 50 61 | 6c 65 74 74 65 0d 09 4d |f the Pa|lette..M|
|00004290| 61 6e 61 67 65 72 20 61 | 6e 64 20 66 6f 72 20 67 |anager a|nd for g|
|000042a0| 6f 6f 64 20 73 75 67 67 | 65 73 74 69 6f 6e 73 20 |ood sugg|estions |
|000042b0| 6f 6e 20 6d 61 6b 69 6e | 67 20 69 74 20 6d 6f 72 |on makin|g it mor|
|000042c0| 65 20 4d 61 63 41 70 70 | 20 66 72 69 65 6e 64 6c |e MacApp| friendl|
|000042d0| 79 2e 0d 09 7d 0d 09 0d | 54 79 70 65 09 50 61 67 |y...}...|Type.Pag|
|000042e0| 65 52 65 63 20 3d 20 52 | 65 63 6f 72 64 0d 09 09 |eRec = R|ecord...|
|000042f0| 09 09 63 75 72 72 65 6e | 74 48 2c 0d 09 09 09 09 |..curren|tH,.....|
|00004300| 63 75 72 72 65 6e 74 56 | 2c 0d 09 09 09 09 6d 61 |currentV|,.....ma|
|00004310| 78 48 2c 0d 09 09 09 09 | 6d 61 78 56 3a 09 09 09 |xH,.....|maxV:...|
|00004320| 49 6e 74 65 67 65 72 3b | 0d 09 09 09 09 52 65 61 |Integer;|.....Rea|
|00004330| 6c 4d 69 6e 2c 0d 09 09 | 09 09 52 65 61 6c 4d 61 |lMin,...|..RealMa|
|00004340| 78 2c 0d 09 09 09 09 49 | 6d 61 67 4d 69 6e 2c 0d |x,.....I|magMin,.|
|00004350| 09 09 09 09 49 6d 61 67 | 4d 61 78 3a 09 09 45 78 |....Imag|Max:..Ex|
|00004360| 74 65 6e 64 65 64 3b 09 | 09 09 09 7b 20 66 6f 72 |tended;.|...{ for|
|00004370| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 64 6f 63 | the cur|rent doc|
|00004380| 75 6d 65 6e 74 2e 20 7d | 0d 09 09 09 45 6e 64 3b |ument. }|....End;|
|00004390| 0d 09 09 09 50 61 67 65 | 52 65 63 50 74 72 20 3d |....Page|RecPtr =|
|000043a0| 20 5e 50 61 67 65 52 65 | 63 3b 0d 0d 0d 09 7b 20 | ^PageRe|c;....{ |
|000043b0| 47 6c 6f 62 61 6c 20 76 | 61 72 69 61 62 6c 65 73 |Global v|ariables|
|000043c0| 2e 20 20 7d 0d 56 41 52 | 0d 09 67 53 74 61 67 67 |. }.VAR|..gStagg|
|000043d0| 65 72 43 6f 75 6e 74 3a | 20 09 49 4e 54 45 47 45 |erCount:| .INTEGE|
|000043e0| 52 3b 09 09 09 09 7b 20 | 66 6f 72 20 73 74 61 67 |R;....{ |for stag|
|000043f0| 67 65 72 69 6e 67 20 77 | 69 6e 64 6f 77 73 2e 20 |gering w|indows. |
|00004400| 7d 0d 09 67 4f 75 72 43 | 6f 6c 6f 72 73 3a 09 09 |}..gOurC|olors:..|
|00004410| 09 43 54 61 62 48 61 6e | 64 6c 65 3b 09 09 09 7b |.CTabHan|dle;...{|
|00004420| 20 63 6f 6c 6f 72 20 74 | 61 62 6c 65 20 77 65 20 | color t|able we |
|00004430| 75 73 65 20 61 73 20 61 | 20 73 6f 75 72 63 65 20 |use as a| source |
|00004440| 66 6f 72 20 64 6f 63 75 | 6d 65 6e 74 73 2e 20 7d |for docu|ments. }|
|00004450| 0d 7b 09 67 52 65 61 6c | 4d 69 6e 2c 0d 09 67 52 |.{.gReal|Min,..gR|
|00004460| 65 61 6c 4d 61 78 2c 0d | 09 67 49 6d 61 67 4d 69 |ealMax,.|.gImagMi|
|00004470| 6e 2c 0d 09 67 49 6d 61 | 67 4d 61 78 3a 09 09 09 |n,..gIma|gMax:...|
|00004480| 45 78 74 65 6e 64 65 64 | 3b 09 09 09 09 7b 20 75 |Extended|;....{ u|
|00004490| 73 65 64 20 66 6f 72 20 | 7a 6f 6f 6d 69 6e 67 20 |sed for |zooming |
|000044a0| 69 6e 20 6f 70 65 72 61 | 74 69 6f 6e 2e 20 7d 0d |in opera|tion. }.|
|000044b0| 0d 09 09 7b 20 54 68 65 | 20 6e 65 78 74 20 67 6c |...{ The| next gl|
|000044c0| 6f 62 61 6c 73 20 61 72 | 65 20 75 73 65 64 20 66 |obals ar|e used f|
|000044d0| 6f 72 20 74 68 65 20 51 | 75 69 63 6b 44 72 61 77 |or the Q|uickDraw|
|000044e0| 20 62 6f 74 74 6c 65 6e | 65 63 6b 73 20 77 68 65 | bottlen|ecks whe|
|000044f0| 6e 20 72 65 61 64 69 6e | 67 20 6f 72 0d 09 09 09 |n readin|g or....|
|00004500| 77 72 69 74 69 6e 67 20 | 61 20 70 69 63 74 75 72 |writing |a pictur|
|00004510| 65 20 74 6f 20 64 69 73 | 6b 2e 20 20 54 68 65 73 |e to dis|k. Thes|
|00004520| 65 20 61 72 65 20 6e 65 | 65 64 65 64 2c 20 73 69 |e are ne|eded, si|
|00004530| 6e 63 65 20 74 68 65 20 | 62 6f 74 74 6c 65 6e 65 |nce the |bottlene|
|00004540| 63 6b 73 20 63 61 6e 6e | 6f 74 0d 09 09 09 62 65 |cks cann|ot....be|
|00004550| 20 6f 77 6e 65 64 20 70 | 72 6f 63 65 64 75 72 65 | owned p|rocedure|
|00004560| 73 2e 20 7d 0d 09 67 50 | 69 63 74 53 69 7a 65 3a |s. }..gP|ictSize:|
|00004570| 09 09 09 4c 6f 6e 67 49 | 6e 74 3b 09 09 09 09 7b |...LongI|nt;....{|
|00004580| 20 6e 75 6d 62 65 72 20 | 6f 66 20 62 79 74 65 73 | number |of bytes|
|00004590| 20 75 73 65 64 20 66 6f | 72 20 73 61 76 69 6e 67 | used fo|r saving|
|000045a0| 20 61 20 50 49 43 54 2e | 20 7d 0d 09 67 50 69 63 | a PICT.| }..gPic|
|000045b0| 74 45 72 72 6f 72 3a 09 | 09 09 4f 53 45 72 72 3b |tError:.|..OSErr;|
|000045c0| 09 09 09 09 09 7b 20 64 | 6f 20 73 6f 6d 65 20 65 |.....{ d|o some e|
|000045d0| 72 72 6f 72 20 68 61 6e | 64 6c 69 6e 67 20 69 6e |rror han|dling in|
|000045e0| 20 62 6f 74 74 6c 65 6e | 65 63 6b 2e 20 7d 0d 09 | bottlen|eck. }..|
|000045f0| 67 50 69 63 74 52 65 66 | 4e 75 6d 3a 09 09 49 6e |gPictRef|Num:..In|
|00004600| 74 65 67 65 72 3b 09 09 | 09 09 7b 20 4e 65 65 64 |teger;..|..{ Need|
|00004610| 20 74 68 65 20 72 65 66 | 6e 75 6d 20 6f 66 20 74 | the ref|num of t|
|00004620| 68 65 20 6f 70 65 6e 20 | 66 69 6c 65 20 74 6f 6f |he open |file too|
|00004630| 2e 20 7d 0d 09 67 50 69 | 63 74 48 61 6e 64 6c 65 |. }..gPi|ctHandle|
|00004640| 3a 09 09 50 69 63 48 61 | 6e 64 6c 65 3b 09 09 09 |:..PicHa|ndle;...|
|00004650| 7b 20 66 6f 72 20 72 65 | 61 64 69 6e 67 2f 77 72 |{ for re|ading/wr|
|00004660| 69 74 69 6e 67 20 61 20 | 70 69 63 74 75 72 65 2e |iting a |picture.|
|00004670| 20 7d 0d 0d 09 67 50 61 | 67 65 52 65 63 3a 09 09 | }...gPa|geRec:..|
|00004680| 09 50 61 67 65 52 65 63 | 3b 09 09 09 09 7b 20 63 |.PageRec|;....{ c|
|00004690| 75 72 72 65 6e 74 20 61 | 6e 64 20 74 6f 74 61 6c |urrent a|nd total|
|000046a0| 20 70 61 67 65 20 63 6f | 75 6e 74 20 66 72 6f 6d | page co|unt from|
|000046b0| 20 27 70 61 67 65 27 20 | 72 65 73 6f 75 72 63 65 | 'page' |resource|
|000046c0| 20 7d 0d 09 0d 09 09 0d | 0d 7b 20 53 65 74 20 73 | }......|.{ Set s|
|000046d0| 6f 6d 65 20 63 6f 6d 70 | 69 6c 65 72 20 6f 70 74 |ome comp|iler opt|
|000046e0| 69 6f 6e 73 20 74 68 61 | 74 20 77 65 20 64 65 73 |ions tha|t we des|
|000046f0| 69 72 65 20 66 6f 72 20 | 74 68 65 20 6d 61 69 6e |ire for |the main|
|00004700| 20 62 6f 64 79 20 6f 66 | 20 63 6f 64 65 20 6f 6e | body of| code on|
|00004710| 6c 79 2e 20 20 59 6f 75 | 0d 09 6d 69 67 68 74 20 |ly. You|..might |
|00004720| 77 69 73 68 20 74 6f 20 | 6c 65 61 76 65 20 6f 6e |wish to |leave on|
|00004730| 20 74 68 65 20 72 61 6e | 67 65 20 63 68 65 63 6b | the ran|ge check|
|00004740| 69 6e 67 2c 20 62 75 74 | 20 49 20 77 61 73 20 6e |ing, but| I was n|
|00004750| 6f 74 20 73 61 74 69 73 | 66 69 65 64 20 77 69 74 |ot satis|fied wit|
|00004760| 68 20 68 61 76 69 6e 67 | 0d 09 74 6f 20 70 75 73 |h having|..to pus|
|00004770| 68 20 61 6e 64 20 70 6f | 70 20 69 6e 20 74 68 65 |h and po|p in the|
|00004780| 20 63 6f 64 65 2c 20 61 | 6e 64 20 77 61 73 20 6e | code, a|nd was n|
|00004790| 6f 74 20 70 6c 65 61 73 | 65 64 20 77 69 74 68 20 |ot pleas|ed with |
|000047a0| 74 68 65 20 73 6c 6f 77 | 64 6f 77 6e 20 69 6e 20 |the slow|down in |
|000047b0| 70 65 72 66 6f 72 6d 61 | 6e 63 65 2e 20 0d 09 54 |performa|nce. ..T|
|000047c0| 68 65 73 65 20 63 61 6e | 20 62 65 20 64 61 6e 67 |hese can| be dang|
|000047d0| 65 72 6f 75 73 20 74 6f | 20 74 75 72 6e 20 6f 66 |erous to| turn of|
|000047e0| 66 2c 20 65 73 70 65 63 | 69 61 6c 6c 79 20 74 68 |f, espec|ially th|
|000047f0| 65 20 24 48 2e 20 20 46 | 6f 72 20 74 68 6f 73 65 |e $H. F|or those|
|00004800| 20 77 68 6f 20 75 73 65 | 20 4d 50 57 0d 09 6d 6f | who use| MPW..mo|
|00004810| 72 65 20 74 68 61 6e 20 | 49 2c 20 79 6f 75 20 70 |re than |I, you p|
|00004820| 72 6f 62 61 62 6c 79 20 | 77 61 6e 74 20 74 6f 20 |robably |want to |
|00004830| 6d 61 6b 65 20 74 68 65 | 73 65 20 73 65 74 74 61 |make the|se setta|
|00004840| 62 6c 65 20 66 72 6f 6d | 20 74 68 65 20 63 6f 6d |ble from| the com|
|00004850| 6d 61 6e 64 20 6c 69 6e | 65 2c 0d 09 6f 72 20 75 |mand lin|e,..or u|
|00004860| 73 65 20 74 68 65 20 4d | 61 63 41 70 70 20 64 65 |se the M|acApp de|
|00004870| 62 75 67 20 6f 72 20 6e | 6f 2d 64 65 62 75 67 20 |bug or n|o-debug |
|00004880| 63 6f 6d 70 69 6c 65 20 | 74 69 6d 65 20 76 61 72 |compile |time var|
|00004890| 69 61 62 6c 65 73 2e 20 | 20 7d 0d 7b 24 50 55 53 |iables. | }.{$PUS|
|000048a0| 48 7d 09 09 7b 20 53 61 | 76 65 20 74 68 65 20 63 |H}..{ Sa|ve the c|
|000048b0| 6f 6d 70 69 6c 65 72 20 | 73 74 61 74 65 20 62 65 |ompiler |state be|
|000048c0| 66 6f 72 65 20 77 65 20 | 63 68 61 6e 67 65 20 69 |fore we |change i|
|000048d0| 74 2e 20 7d 0d 7b 24 44 | 2b 7d 09 09 09 7b 20 44 |t. }.{$D|+}...{ D|
|000048e0| 65 62 75 67 67 69 6e 67 | 20 6c 61 62 65 6c 73 20 |ebugging| labels |
|000048f0| 6f 6e 20 66 6f 72 20 74 | 68 65 20 63 6f 64 65 20 |on for t|he code |
|00004900| 68 65 72 65 2e 20 7d 0d | 7b 24 52 2d 7d 09 09 09 |here. }.|{$R-}...|
|00004910| 7b 20 4e 6f 20 72 61 6e | 67 65 20 63 68 65 63 6b |{ No ran|ge check|
|00004920| 69 6e 67 20 74 6f 20 6d | 61 6b 65 20 74 68 69 6e |ing to m|ake thin|
|00004930| 67 73 20 66 61 73 74 65 | 72 2e 20 7d 0d 7b 24 4f |gs faste|r. }.{$O|
|00004940| 56 2d 7d 09 09 09 7b 20 | 4e 6f 20 6f 76 65 72 66 |V-}...{ |No overf|
|00004950| 6c 6f 77 20 63 68 65 63 | 6b 69 6e 67 20 65 69 74 |low chec|king eit|
|00004960| 68 65 72 2e 20 7d 0d 7b | 24 48 2d 7d 09 09 09 7b |her. }.{|$H-}...{|
|00004970| 20 4e 6f 20 68 61 6e 64 | 6c 65 20 63 68 65 63 6b | No hand|le check|
|00004980| 69 6e 67 20 74 6f 20 61 | 76 6f 69 64 20 63 6f 6d |ing to a|void com|
|00004990| 70 69 6c 65 72 20 63 6f | 6d 70 6c 61 69 6e 74 73 |piler co|mplaints|
|000049a0| 20 6f 6e 20 57 49 54 48 | 73 2e 20 20 42 65 20 63 | on WITH|s. Be c|
|000049b0| 61 72 65 66 75 6c 2e 20 | 7d 0d 7b 24 4e 2b 7d 09 |areful. |}.{$N+}.|
|000049c0| 0d 0d 7b 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |..{-----|--------|
|000049d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000049e0| 2d 2d 20 20 41 70 70 6c | 69 63 61 74 69 6f 6e 20 |-- Appl|ication |
|000049f0| 20 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | -------|--------|
|00004a00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004a10| 7d 0d 0d 50 52 4f 43 45 | 44 55 52 45 20 54 46 72 |}..PROCE|DURE TFr|
|00004a20| 61 63 41 70 70 41 70 70 | 6c 69 63 61 74 69 6f 6e |acAppApp|lication|
|00004a30| 2e 49 46 72 61 63 41 70 | 70 41 70 70 6c 69 63 61 |.IFracAp|pApplica|
|00004a40| 74 69 6f 6e 28 69 74 73 | 4d 61 69 6e 46 69 6c 65 |tion(its|MainFile|
|00004a50| 54 79 70 65 3a 20 4f 53 | 54 79 70 65 29 3b 0d 0d |Type: OS|Type);..|
|00004a60| 56 41 52 09 09 09 70 61 | 67 65 48 3a 09 09 09 09 |VAR...pa|geH:....|
|00004a70| 48 61 6e 64 6c 65 3b 0d | 0d 42 45 47 49 4e 0d 09 |Handle;.|.BEGIN..|
|00004a80| 67 53 74 61 67 67 65 72 | 43 6f 75 6e 74 20 3a 3d |gStagger|Count :=|
|00004a90| 20 30 3b 0d 09 49 41 70 | 70 6c 69 63 61 74 69 6f | 0;..IAp|plicatio|
|00004aa0| 6e 28 69 74 73 4d 61 69 | 6e 46 69 6c 65 54 79 70 |n(itsMai|nFileTyp|
|00004ab0| 65 29 3b 0d 7b 09 66 49 | 64 6c 65 46 72 65 71 20 |e);.{.fI|dleFreq |
|00004ac0| 3a 3d 20 30 3b 09 09 09 | 09 09 09 09 7b 20 73 61 |:= 0;...|....{ sa|
|00004ad0| 79 20 77 65 20 6e 65 65 | 64 20 49 64 6c 65 20 74 |y we nee|d Idle t|
|00004ae0| 69 6d 65 20 63 61 6c 6c | 73 20 74 6f 20 54 41 70 |ime call|s to TAp|
|00004af0| 70 2e 44 6f 49 64 6c 65 | 20 7d 0d 28 2a 09 67 52 |p.DoIdle| }.(*.gR|
|00004b00| 65 61 6c 4d 69 6e 20 3a | 3d 20 30 3b 09 09 09 09 |ealMin :|= 0;....|
|00004b10| 09 09 09 7b 20 6d 75 73 | 74 20 62 65 20 73 65 74 |...{ mus|t be set|
|00004b20| 20 74 6f 20 65 6d 70 74 | 79 20 74 6f 20 73 74 61 | to empt|y to sta|
|00004b30| 72 74 20 77 69 74 68 2e | 20 7d 0d 09 67 52 65 61 |rt with.| }..gRea|
|00004b40| 6c 4d 61 78 20 3a 3d 20 | 30 3b 09 09 09 09 09 09 |lMax := |0;......|
|00004b50| 09 7b 20 73 6f 20 77 65 | 20 64 6f 20 6e 6f 72 6d |.{ so we| do norm|
|00004b60| 61 6c 20 64 6f 63 75 6d | 65 6e 74 20 6f 70 65 6e |al docum|ent open|
|00004b70| 2e 20 7d 0d 2a 29 09 0d | 09 09 7b 20 47 65 74 20 |. }.*)..|..{ Get |
|00004b80| 74 68 65 20 63 75 72 72 | 65 6e 74 20 70 61 67 65 |the curr|ent page|
|00004b90| 20 63 6f 75 6e 74 20 6f | 66 20 61 20 6d 75 6c 74 | count o|f a mult|
|00004ba0| 69 70 6c 65 20 70 61 67 | 65 20 6f 70 65 72 61 74 |iple pag|e operat|
|00004bb0| 69 6f 6e 2e 20 7d 0d 09 | 70 61 67 65 48 20 3a 3d |ion. }..|pageH :=|
|00004bc0| 20 47 65 74 52 65 73 6f | 75 72 63 65 28 27 70 61 | GetReso|urce('pa|
|00004bd0| 67 65 27 2c 20 6b 50 61 | 67 65 49 64 29 3b 0d 09 |ge', kPa|geId);..|
|00004be0| 46 61 69 6c 4e 69 6c 20 | 28 70 61 67 65 48 29 3b |FailNil |(pageH);|
|00004bf0| 0d 09 67 50 61 67 65 52 | 65 63 20 3a 3d 20 50 61 |..gPageR|ec := Pa|
|00004c00| 67 65 52 65 63 50 74 72 | 28 70 61 67 65 48 5e 29 |geRecPtr|(pageH^)|
|00004c10| 5e 3b 0d 09 0d 09 09 7b | 20 4e 6f 77 20 61 6c 6c |^;.....{| Now all|
|00004c20| 6f 63 61 74 65 20 61 20 | 63 6f 6c 6f 72 20 74 61 |ocate a |color ta|
|00004c30| 62 6c 65 20 74 68 61 74 | 20 77 65 20 77 69 6c 6c |ble that| we will|
|00004c40| 20 75 73 65 20 77 68 65 | 6e 65 76 65 72 20 77 65 | use whe|never we|
|00004c50| 20 63 72 65 61 74 65 20 | 61 20 6e 65 77 20 64 6f | create |a new do|
|00004c60| 63 75 6d 65 6e 74 0d 09 | 09 09 6f 72 20 6e 65 65 |cument..|..or nee|
|00004c70| 64 20 74 6f 20 63 6f 6d | 70 61 72 65 20 63 6f 6c |d to com|pare col|
|00004c80| 6f 72 73 2e 20 20 54 68 | 69 73 20 69 73 20 73 6f |ors. Th|is is so|
|00004c90| 20 77 65 20 68 61 76 65 | 20 74 68 65 20 73 61 6d | we have| the sam|
|00004ca0| 65 20 63 6f 6c 6f 72 20 | 74 61 62 6c 65 20 66 6f |e color |table fo|
|00004cb0| 72 20 65 61 63 68 0d 09 | 09 09 64 6f 63 75 6d 65 |r each..|..docume|
|00004cc0| 6e 74 2c 20 61 73 20 77 | 65 6c 6c 20 68 61 76 69 |nt, as w|ell havi|
|00004cd0| 6e 67 20 74 68 65 20 63 | 74 53 65 65 64 20 74 68 |ng the c|tSeed th|
|00004ce0| 65 20 73 61 6d 65 20 66 | 6f 72 20 74 68 65 6d 20 |e same f|or them |
|00004cf0| 61 6c 6c 2e 20 7d 0d 09 | 67 4f 75 72 43 6f 6c 6f |all. }..|gOurColo|
|00004d00| 72 73 20 3a 3d 20 47 65 | 74 43 54 61 62 6c 65 28 |rs := Ge|tCTable(|
|00004d10| 6b 43 6c 75 74 29 3b 09 | 09 09 09 09 7b 20 69 6e |kClut);.|....{ in|
|00004d20| 73 74 61 6c 6c 20 6f 75 | 72 20 6e 65 77 20 64 65 |stall ou|r new de|
|00004d30| 73 69 72 65 64 20 6f 6e | 65 20 66 72 6f 6d 20 63 |sired on|e from c|
|00004d40| 6c 75 74 20 7d 0d 09 46 | 61 69 6c 4e 69 6c 20 28 |lut }..F|ailNil (|
|00004d50| 67 4f 75 72 43 6f 6c 6f | 72 73 29 3b 0d 09 0d 45 |gOurColo|rs);...E|
|00004d60| 4e 44 3b 09 09 7b 20 54 | 46 72 61 63 41 70 70 41 |ND;..{ T|FracAppA|
|00004d70| 70 70 6c 69 63 61 74 69 | 6f 6e 2e 49 46 72 61 63 |pplicati|on.IFrac|
|00004d80| 41 70 70 41 70 70 6c 69 | 63 61 74 69 6f 6e 20 7d |AppAppli|cation }|
|00004d90| 0d 0d 0d 28 2a 09 7b 20 | 54 68 65 20 43 6c 6f 73 |...(*.{ |The Clos|
|00004da0| 65 20 6d 65 74 68 6f 64 | 20 74 6f 20 61 6c 6c 6f |e method| to allo|
|00004db0| 77 20 75 73 20 74 6f 20 | 63 6c 65 61 6e 20 75 70 |w us to |clean up|
|00004dc0| 20 62 65 66 6f 72 65 20 | 74 68 65 20 72 65 67 75 | before |the regu|
|00004dd0| 6c 61 72 20 54 41 70 70 | 6c 69 63 61 74 69 6f 6e |lar TApp|lication|
|00004de0| 2e 43 6c 6f 73 65 0d 09 | 09 67 65 74 73 20 63 61 |.Close..|.gets ca|
|00004df0| 6c 6c 65 64 2e 20 20 57 | 65 20 4f 76 65 72 52 69 |lled. W|e OverRi|
|00004e00| 64 65 20 69 74 20 73 6f | 20 77 65 20 67 65 74 20 |de it so| we get |
|00004e10| 63 6f 6e 74 72 6f 6c 20 | 66 69 72 73 74 2e 20 20 |control |first. |
|00004e20| 20 57 65 20 6e 65 65 64 | 20 74 6f 20 72 65 6d 6f | We need| to remo|
|00004e30| 76 65 20 74 68 65 0d 09 | 09 63 6f 48 61 6e 64 6c |ve the..|.coHandl|
|00004e40| 65 72 20 66 6f 72 20 74 | 68 65 20 69 64 6c 65 20 |er for t|he idle |
|00004e50| 70 72 6f 63 65 73 73 69 | 6e 67 20 62 65 66 6f 72 |processi|ng befor|
|00004e60| 65 20 74 68 65 20 72 65 | 67 75 6c 61 72 20 63 6c |e the re|gular cl|
|00004e70| 6f 73 65 20 72 75 6e 73 | 2c 20 73 69 6e 63 65 20 |ose runs|, since |
|00004e80| 69 74 20 77 69 6c 6c 0d | 09 09 64 69 73 70 6f 73 |it will.|..dispos|
|00004e90| 65 20 61 6c 6c 20 63 6f | 48 61 6e 64 6c 65 72 73 |e all co|Handlers|
|00004ea0| 2c 20 61 6e 64 20 69 74 | 20 69 73 6e 27 74 20 63 |, and it| isn't c|
|00004eb0| 6f 6f 6c 20 74 6f 20 68 | 61 76 65 20 74 68 65 20 |ool to h|ave the |
|00004ec0| 54 61 70 70 20 6f 62 6a | 65 63 74 20 64 69 65 20 |Tapp obj|ect die |
|00004ed0| 74 6f 20 73 6f 6f 6e 2e | 0d 09 09 53 6f 2c 20 72 |to soon.|...So, r|
|00004ee0| 65 6d 6f 76 65 20 74 68 | 65 20 63 6f 68 61 6e 64 |emove th|e cohand|
|00004ef0| 6c 65 72 20 68 65 72 65 | 2c 20 62 75 74 20 77 61 |ler here|, but wa|
|00004f00| 74 63 68 20 66 6f 72 20 | 61 20 66 61 69 6c 75 72 |tch for |a failur|
|00004f10| 65 20 6c 69 6b 65 20 61 | 20 63 61 6e 63 65 6c 20 |e like a| cancel |
|00004f20| 6f 75 74 20 6f 66 20 61 | 0d 09 09 73 61 76 65 20 |out of a|...save |
|00004f30| 64 69 61 6c 6f 67 2e 20 | 20 49 66 20 74 68 65 79 |dialog. | If they|
|00004f40| 20 63 61 6e 63 65 6c 2c | 20 73 74 61 79 69 6e 67 | cancel,| staying|
|00004f50| 20 69 6e 20 74 68 65 20 | 61 70 70 2c 20 77 65 20 | in the |app, we |
|00004f60| 6e 65 65 64 20 74 6f 20 | 72 65 69 6e 73 74 61 6c |need to |reinstal|
|00004f70| 6c 20 74 68 65 20 63 6f | 0d 09 09 68 61 6e 64 6c |l the co|...handl|
|00004f80| 65 72 2c 20 77 68 69 63 | 68 20 65 78 70 6c 61 69 |er, whic|h explai|
|00004f90| 6e 73 20 74 68 65 20 66 | 61 69 6c 75 72 65 20 68 |ns the f|ailure h|
|00004fa0| 61 6e 64 6c 65 72 20 68 | 65 72 65 2e 20 7d 0d 50 |andler h|ere. }.P|
|00004fb0| 52 4f 43 45 44 55 52 45 | 20 54 46 72 61 63 41 70 |ROCEDURE| TFracAp|
|00004fc0| 70 41 70 70 6c 69 63 61 | 74 69 6f 6e 2e 43 6c 6f |pApplica|tion.Clo|
|00004fd0| 73 65 3b 20 20 4f 56 45 | 52 52 49 44 45 3b 0d 56 |se; OVE|RRIDE;.V|
|00004fe0| 41 52 09 09 66 69 3a 09 | 09 09 09 46 61 69 6c 49 |AR..fi:.|...FailI|
|00004ff0| 6e 66 6f 3b 0d 09 0d 09 | 50 52 4f 43 45 44 55 52 |nfo;....|PROCEDUR|
|00005000| 45 20 44 65 61 74 68 43 | 6c 6f 73 65 20 28 65 72 |E DeathC|lose (er|
|00005010| 72 6f 72 3a 20 4f 53 45 | 72 72 3b 20 6d 65 73 73 |ror: OSE|rr; mess|
|00005020| 61 67 65 3a 20 4c 4f 4e | 47 49 4e 54 29 3b 0d 09 |age: LON|GINT);..|
|00005030| 42 45 47 49 4e 0d 09 09 | 49 6e 73 74 61 6c 6c 43 |BEGIN...|InstallC|
|00005040| 6f 68 61 6e 64 6c 65 72 | 28 53 45 4c 46 2c 20 54 |ohandler|(SELF, T|
|00005050| 52 55 45 29 3b 09 09 7b | 20 52 65 49 6e 73 74 61 |RUE);..{| ReInsta|
|00005060| 6c 6c 20 63 6f 48 61 6e | 64 6c 65 72 2c 20 77 65 |ll coHan|dler, we|
|00005070| 20 61 72 65 20 73 74 61 | 79 69 6e 67 2e 20 7d 0d | are sta|ying. }.|
|00005080| 09 45 4e 44 3b 0d 0d 42 | 45 47 49 4e 0d 09 43 61 |.END;..B|EGIN..Ca|
|00005090| 74 63 68 46 61 69 6c 75 | 72 65 73 28 66 69 2c 20 |tchFailu|res(fi, |
|000050a0| 44 65 61 74 68 43 6c 6f | 73 65 29 3b 09 0d 09 49 |DeathClo|se);...I|
|000050b0| 6e 73 74 61 6c 6c 43 6f | 68 61 6e 64 6c 65 72 28 |nstallCo|handler(|
|000050c0| 53 45 4c 46 2c 20 46 41 | 4c 53 45 29 3b 09 09 7b |SELF, FA|LSE);..{|
|000050d0| 20 52 65 6d 6f 76 65 20 | 63 6f 48 61 6e 64 6c 65 | Remove |coHandle|
|000050e0| 72 2c 20 61 62 6f 75 74 | 20 74 6f 20 6c 65 61 76 |r, about| to leav|
|000050f0| 65 2e 20 7d 0d 09 49 4e | 48 45 52 49 54 45 44 20 |e. }..IN|HERITED |
|00005100| 43 6c 6f 73 65 3b 0d 09 | 53 75 63 63 65 73 73 20 |Close;..|Success |
|00005110| 28 66 69 29 3b 0d 45 4e | 44 3b 0d 2a 29 0d 0d 09 |(fi);.EN|D;.*)...|
|00005120| 7b 20 4f 4b 2c 20 74 68 | 69 73 20 69 73 20 77 68 |{ OK, th|is is wh|
|00005130| 65 72 65 20 61 20 6e 65 | 77 20 64 6f 63 75 6d 65 |ere a ne|w docume|
|00005140| 6e 74 20 67 65 74 73 20 | 63 72 65 61 74 65 64 2e |nt gets |created.|
|00005150| 20 20 54 68 69 73 20 64 | 6f 65 73 20 74 68 65 20 | This d|oes the |
|00005160| 69 6e 69 74 20 66 6f 72 | 20 74 68 65 0d 09 09 64 |init for| the...d|
|00005170| 6f 63 75 6d 65 6e 74 20 | 6f 62 6a 65 63 74 20 69 |ocument |object i|
|00005180| 74 73 65 6c 66 2e 20 20 | 41 66 74 65 72 20 69 74 |tself. |After it|
|00005190| 20 69 73 20 64 6f 6e 65 | 2c 20 74 68 65 20 76 69 | is done|, the vi|
|000051a0| 65 77 20 61 6e 64 20 77 | 69 6e 64 6f 77 20 63 61 |ew and w|indow ca|
|000051b0| 6e 0d 09 09 62 65 20 63 | 72 65 61 74 65 64 2c 20 |n...be c|reated, |
|000051c0| 72 65 6c 79 69 6e 67 20 | 75 70 6f 6e 20 74 68 65 |relying |upon the|
|000051d0| 20 64 61 74 61 20 69 6e | 20 74 68 65 20 64 6f 63 | data in| the doc|
|000051e0| 75 6d 65 6e 74 2e 20 7d | 0d 46 55 4e 43 54 49 4f |ument. }|.FUNCTIO|
|000051f0| 4e 20 20 54 46 72 61 63 | 41 70 70 41 70 70 6c 69 |N TFrac|AppAppli|
|00005200| 63 61 74 69 6f 6e 2e 44 | 6f 4d 61 6b 65 44 6f 63 |cation.D|oMakeDoc|
|00005210| 75 6d 65 6e 74 28 69 74 | 73 43 6d 64 4e 75 6d 62 |ument(it|sCmdNumb|
|00005220| 65 72 3a 20 43 6d 64 4e | 75 6d 62 65 72 29 3a 0d |er: CmdN|umber):.|
|00005230| 09 09 54 44 6f 63 75 6d | 65 6e 74 3b 20 4f 56 45 |..TDocum|ent; OVE|
|00005240| 52 52 49 44 45 3b 0d 09 | 09 0d 56 41 52 09 09 61 |RRIDE;..|..VAR..a|
|00005250| 46 72 61 63 41 70 70 44 | 6f 63 75 6d 65 6e 74 3a |FracAppD|ocument:|
|00005260| 09 54 46 72 61 63 41 70 | 70 44 6f 63 75 6d 65 6e |.TFracAp|pDocumen|
|00005270| 74 3b 0d 0d 42 45 47 49 | 4e 0d 09 7b 20 41 6c 6c |t;..BEGI|N..{ All|
|00005280| 6f 63 61 74 65 20 61 6e | 64 20 69 6e 69 74 69 61 |ocate an|d initia|
|00005290| 6c 69 7a 65 20 74 68 65 | 20 64 6f 63 75 6d 65 6e |lize the| documen|
|000052a0| 74 7d 0d 09 4e 65 77 28 | 61 46 72 61 63 41 70 70 |t}..New(|aFracApp|
|000052b0| 44 6f 63 75 6d 65 6e 74 | 29 3b 0d 09 46 61 69 6c |Document|);..Fail|
|000052c0| 4e 69 6c 28 61 46 72 61 | 63 41 70 70 44 6f 63 75 |Nil(aFra|cAppDocu|
|000052d0| 6d 65 6e 74 29 3b 0d 0d | 09 7b 20 4e 6f 77 20 69 |ment);..|.{ Now i|
|000052e0| 6e 69 74 69 61 6c 69 7a | 65 20 74 68 65 20 64 6f |nitializ|e the do|
|000052f0| 63 75 6d 65 6e 74 20 66 | 69 65 6c 64 73 2c 20 61 |cument f|ields, a|
|00005300| 6e 64 20 73 65 74 20 75 | 70 20 74 68 65 20 67 6c |nd set u|p the gl|
|00005310| 6f 62 61 6c 20 73 74 61 | 74 65 20 6f 66 20 74 68 |obal sta|te of th|
|00005320| 65 20 66 72 61 63 74 61 | 6c 0d 09 09 74 6f 20 61 |e fracta|l...to a|
|00005330| 20 64 65 66 61 75 6c 74 | 20 73 65 74 20 6f 66 20 | default| set of |
|00005340| 74 68 65 20 73 74 61 72 | 74 69 6e 67 20 66 72 61 |the star|ting fra|
|00005350| 63 74 61 6c 2e 20 7d 0d | 09 61 46 72 61 63 41 70 |ctal. }.|.aFracAp|
|00005360| 70 44 6f 63 75 6d 65 6e | 74 2e 49 46 72 61 63 41 |pDocumen|t.IFracA|
|00005370| 70 70 44 6f 63 75 6d 65 | 6e 74 3b 0d 0d 09 7b 20 |ppDocume|nt;...{ |
|00005380| 57 65 20 73 75 63 63 65 | 73 73 66 75 6c 6c 79 20 |We succe|ssfully |
|00005390| 63 72 65 61 74 65 64 20 | 61 20 64 6f 63 75 6d 65 |created |a docume|
|000053a0| 6e 74 20 73 6f 20 77 65 | 20 63 61 6e 20 72 65 74 |nt so we| can ret|
|000053b0| 75 72 6e 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 |urn the |document|
|000053c0| 20 6f 62 6a 65 63 74 20 | 66 6f 72 0d 09 09 75 73 | object |for...us|
|000053d0| 65 20 62 79 20 74 68 65 | 20 61 70 70 6c 69 63 61 |e by the| applica|
|000053e0| 74 69 6f 6e 2e 20 7d 0d | 09 44 6f 4d 61 6b 65 44 |tion. }.|.DoMakeD|
|000053f0| 6f 63 75 6d 65 6e 74 20 | 3a 3d 20 61 46 72 61 63 |ocument |:= aFrac|
|00005400| 41 70 70 44 6f 63 75 6d | 65 6e 74 3b 0d 09 0d 45 |AppDocum|ent;...E|
|00005410| 4e 44 3b 09 7b 20 54 46 | 72 61 63 41 70 70 41 70 |ND;.{ TF|racAppAp|
|00005420| 70 6c 69 63 61 74 69 6f | 6e 2e 44 6f 4d 61 6b 65 |plicatio|n.DoMake|
|00005430| 44 6f 63 75 6d 65 6e 74 | 20 7d 0d 0d 0d 28 2a 09 |Document| }...(*.|
|00005440| 7b 20 50 65 72 66 6f 72 | 6d 73 20 49 64 6c 65 20 |{ Perfor|ms Idle |
|00005450| 74 69 6d 65 20 70 72 6f | 63 65 73 73 69 6e 67 20 |time pro|cessing |
|00005460| 66 6f 72 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 |for the |applicat|
|00005470| 69 6f 6e 2e 20 20 54 68 | 69 73 20 77 69 6c 6c 20 |ion. Th|is will |
|00005480| 64 6f 20 74 68 65 0d 09 | 09 66 72 61 63 74 61 6c |do the..|.fractal|
|00005490| 20 63 61 6c 63 75 6c 61 | 74 69 6f 6e 20 64 75 72 | calcula|tion dur|
|000054a0| 69 6e 67 20 74 68 65 20 | 69 64 6c 65 20 74 69 6d |ing the |idle tim|
|000054b0| 65 73 2e 20 20 49 74 20 | 77 69 6c 6c 20 61 6c 6c |es. It |will all|
|000054c0| 6f 77 20 65 61 63 68 20 | 6f 70 65 6e 0d 09 09 64 |ow each |open...d|
|000054d0| 6f 63 75 6d 65 6e 74 20 | 61 20 63 68 61 6e 63 65 |ocument |a chance|
|000054e0| 20 74 6f 20 63 61 6c 63 | 75 6c 61 74 65 2e 20 20 | to calc|ulate. |
|000054f0| 54 68 65 20 43 61 6c 63 | 43 69 74 79 20 69 73 20 |The Calc|City is |
|00005500| 61 20 6d 65 74 68 6f 64 | 20 6f 77 6e 65 64 20 62 |a method| owned b|
|00005510| 79 0d 09 09 65 61 63 68 | 20 64 6f 63 75 6d 65 6e |y...each| documen|
|00005520| 74 20 74 68 61 74 20 77 | 69 6c 6c 20 67 65 74 20 |t that w|ill get |
|00005530| 61 20 63 61 6c 6c 20 66 | 72 6f 6d 20 74 68 65 20 |a call f|rom the |
|00005540| 46 6f 72 41 6c 6c 44 6f | 63 75 6d 65 6e 74 73 44 |ForAllDo|cumentsD|
|00005550| 6f 2e 20 0d 09 09 54 68 | 65 20 64 6f 63 75 6d 65 |o. ...Th|e docume|
|00005560| 6e 74 73 20 64 6f 6e 27 | 74 20 75 73 65 20 74 68 |nts don'|t use th|
|00005570| 65 20 44 6f 49 64 6c 65 | 20 72 6f 75 74 69 6e 65 |e DoIdle| routine|
|00005580| 20 73 69 6e 63 65 20 77 | 65 20 77 61 6e 74 20 65 | since w|e want e|
|00005590| 61 63 68 0d 09 09 6f 70 | 65 6e 20 64 6f 63 75 6d |ach...op|en docum|
|000055a0| 65 6e 74 20 74 6f 20 67 | 65 74 20 74 69 6d 65 2c |ent to g|et time,|
|000055b0| 20 6e 6f 74 20 6a 75 73 | 74 20 74 68 65 20 6f 6e | not jus|t the on|
|000055c0| 65 20 69 6e 20 74 68 65 | 20 74 61 72 67 65 74 20 |e in the| target |
|000055d0| 63 68 61 69 6e 2e 20 7d | 0d 50 52 4f 43 45 44 55 |chain. }|.PROCEDU|
|000055e0| 52 45 20 20 54 46 72 61 | 63 41 70 70 41 70 70 6c |RE TFra|cAppAppl|
|000055f0| 69 63 61 74 69 6f 6e 2e | 44 6f 49 64 6c 65 20 28 |ication.|DoIdle (|
|00005600| 70 68 61 73 65 3a 20 49 | 64 6c 65 50 68 61 73 65 |phase: I|dlePhase|
|00005610| 29 3b 20 4f 56 45 52 52 | 49 44 45 3b 0d 09 09 56 |); OVERR|IDE;...V|
|00005620| 41 52 09 09 4b 69 6c 6c | 49 74 3a 09 42 6f 6f 6c |AR..Kill|It:.Bool|
|00005630| 65 61 6e 3b 0d 0d 09 09 | 7b 20 47 69 76 65 20 65 |ean;....|{ Give e|
|00005640| 61 63 68 20 64 6f 63 75 | 6d 65 6e 74 20 73 6f 6d |ach docu|ment som|
|00005650| 65 20 43 50 55 20 74 69 | 6d 65 2e 20 7d 0d 2a 29 |e CPU ti|me. }.*)|
|00005660| 28 2a 09 50 52 4f 43 45 | 44 55 52 45 20 44 6f 46 |(*.PROCE|DURE DoF|
|00005670| 72 61 63 74 61 6c 43 61 | 6c 63 28 61 44 6f 63 75 |ractalCa|lc(aDocu|
|00005680| 6d 65 6e 74 3a 20 54 46 | 72 61 63 41 70 70 44 6f |ment: TF|racAppDo|
|00005690| 63 75 6d 65 6e 74 29 3b | 0d 09 0d 09 42 45 47 49 |cument);|....BEGI|
|000056a0| 4e 0d 09 09 61 44 6f 63 | 75 6d 65 6e 74 2e 43 61 |N...aDoc|ument.Ca|
|000056b0| 6c 63 43 69 74 79 3b 09 | 09 09 09 09 09 7b 20 67 |lcCity;.|.....{ g|
|000056c0| 69 76 65 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 |ive the |document|
|000056d0| 20 69 74 73 20 74 69 6d | 65 20 74 6f 20 63 61 6c | its tim|e to cal|
|000056e0| 63 2e 20 7d 0d 09 45 4e | 44 3b 0d 2a 29 28 2a 0d |c. }..EN|D;.*)(*.|
|000056f0| 42 45 47 49 4e 0d 7b 09 | 57 72 69 74 65 4c 6e 20 |BEGIN.{.|WriteLn |
|00005700| 28 27 20 49 64 6c 65 20 | 61 70 70 79 27 29 3b 20 |(' Idle |appy'); |
|00005710| 20 7d 0d 09 09 7b 20 53 | 65 6e 64 20 74 68 65 20 | }...{ S|end the |
|00005720| 6d 65 73 73 61 67 65 20 | 74 6f 20 65 61 63 68 20 |message |to each |
|00005730| 6f 70 65 6e 20 64 6f 63 | 75 6d 65 6e 74 20 74 6f |open doc|ument to|
|00005740| 20 63 61 6c 63 75 6c 61 | 74 65 20 74 68 65 20 6e | calcula|te the n|
|00005750| 65 78 74 20 70 69 78 65 | 6c 2e 20 7d 0d 7b 09 49 |ext pixe|l. }.{.I|
|00005760| 46 20 70 68 61 73 65 20 | 3d 20 49 64 6c 65 43 6f |F phase |= IdleCo|
|00005770| 6e 74 69 6e 75 65 20 20 | 54 48 45 4e 20 20 46 6f |ntinue |THEN Fo|
|00005780| 72 41 6c 6c 44 6f 63 75 | 6d 65 6e 74 73 44 6f 20 |rAllDocu|mentsDo |
|00005790| 28 44 6f 46 72 61 63 74 | 61 6c 43 61 6c 63 29 3b |(DoFract|alCalc);|
|000057a0| 0d 7d 09 49 46 20 67 44 | 6f 63 75 6d 65 6e 74 20 |.}.IF gD|ocument |
|000057b0| 3c 3e 20 4e 49 4c 20 20 | 54 48 45 4e 20 20 42 45 |<> NIL |THEN BE|
|000057c0| 47 49 4e 0d 09 09 4b 69 | 6c 6c 49 74 20 3a 3d 20 |GIN...Ki|llIt := |
|000057d0| 54 46 72 61 63 41 70 70 | 44 6f 63 75 6d 65 6e 74 |TFracApp|Document|
|000057e0| 28 67 44 6f 63 75 6d 65 | 6e 74 29 2e 43 61 6c 63 |(gDocume|nt).Calc|
|000057f0| 43 69 74 79 3b 0d 09 09 | 49 46 20 4b 69 6c 6c 49 |City;...|IF KillI|
|00005800| 74 20 54 48 45 4e 20 42 | 45 47 49 4e 0d 09 09 09 |t THEN B|EGIN....|
|00005810| 67 44 6f 63 75 6d 65 6e | 74 2e 43 6c 6f 73 65 3b |gDocumen|t.Close;|
|00005820| 0d 09 09 09 49 46 20 28 | 67 50 61 67 65 52 65 63 |....IF (|gPageRec|
|00005830| 2e 63 75 72 72 65 6e 74 | 56 20 3c 3e 20 30 29 20 |.current|V <> 0) |
|00005840| 61 6e 64 20 28 67 50 61 | 67 65 52 65 63 2e 63 75 |and (gPa|geRec.cu|
|00005850| 72 72 65 6e 74 48 20 3c | 3e 20 30 29 20 54 48 45 |rrentH <|> 0) THE|
|00005860| 4e 20 0d 09 09 09 09 4f | 70 65 6e 4e 65 77 28 63 |N .....O|penNew(c|
|00005870| 4e 65 77 29 3b 0d 09 09 | 45 4e 44 3b 0d 09 45 4e |New);...|END;..EN|
|00005880| 44 3b 0d 45 4e 44 3b 09 | 09 7b 20 54 46 72 61 63 |D;.END;.|.{ TFrac|
|00005890| 41 70 70 41 70 70 6c 69 | 63 61 74 69 6f 6e 2e 44 |AppAppli|cation.D|
|000058a0| 6f 49 64 6c 65 20 7d 0d | 2a 29 0d 0d 0d 7b 2d 2d |oIdle }.|*)...{--|
|000058b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000058c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 20 20 44 |--------|----- D|
|000058d0| 6f 63 75 6d 65 6e 74 20 | 20 2d 2d 2d 2d 2d 2d 2d |ocument | -------|
|000058e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000058f0| 2d 2d 2d 2d 2d 2d 2d 2d | 7d 0d 0d 09 7b 20 41 6e |--------|}...{ An|
|00005900| 20 61 75 78 69 6c 69 61 | 72 79 20 6d 65 74 68 6f | auxilia|ry metho|
|00005910| 64 20 74 6f 20 73 65 74 | 20 75 70 20 74 68 65 20 |d to set| up the |
|00005920| 73 74 65 70 20 63 6f 6e | 73 74 61 6e 74 73 20 66 |step con|stants f|
|00005930| 6f 72 20 74 68 65 20 66 | 72 61 63 74 61 6c 20 63 |or the f|ractal c|
|00005940| 61 6c 63 75 6c 61 74 69 | 6f 6e 2e 0d 09 09 49 74 |alculati|on....It|
|00005950| 20 69 73 20 65 78 74 65 | 72 6e 61 6c 20 73 69 6e | is exte|rnal sin|
|00005960| 63 65 20 77 65 20 6e 65 | 65 64 20 74 6f 20 73 65 |ce we ne|ed to se|
|00005970| 74 20 75 70 20 74 68 65 | 20 63 6f 6e 73 74 61 6e |t up the| constan|
|00005980| 74 73 20 77 68 65 6e 20 | 77 65 20 63 72 65 61 74 |ts when |we creat|
|00005990| 65 20 61 20 6e 65 77 0d | 09 09 66 72 61 63 74 61 |e a new.|..fracta|
|000059a0| 6c 20 61 73 20 61 20 7a | 6f 6f 6d 20 69 6e 2e 20 |l as a z|oom in. |
|000059b0| 20 20 53 65 74 73 20 75 | 70 20 74 68 65 20 77 69 | Sets u|p the wi|
|000059c0| 64 74 68 2f 68 65 69 67 | 68 74 20 6f 66 20 66 72 |dth/heig|ht of fr|
|000059d0| 61 63 74 61 6c 2c 20 74 | 68 65 20 64 65 6c 74 61 |actal, t|he delta|
|000059e0| 20 69 6e 20 65 61 63 68 | 0d 09 09 61 78 69 73 20 | in each|...axis |
|000059f0| 61 73 20 61 20 72 65 61 | 6c 20 6e 75 6d 62 65 72 |as a rea|l number|
|00005a00| 2c 20 61 6e 64 20 65 6e | 73 75 72 65 73 20 74 68 |, and en|sures th|
|00005a10| 61 74 20 74 68 65 20 73 | 74 61 72 74 69 6e 67 20 |at the s|tarting |
|00005a20| 6d 69 6e 2f 6d 61 78 20 | 76 61 6c 75 65 73 20 66 |min/max |values f|
|00005a30| 6f 72 0d 09 09 74 68 65 | 20 66 69 67 75 72 65 20 |or...the| figure |
|00005a40| 61 72 65 20 73 65 74 20 | 74 6f 20 73 75 70 70 6c |are set |to suppl|
|00005a50| 79 20 61 20 31 3a 31 20 | 61 73 70 65 63 74 20 72 |y a 1:1 |aspect r|
|00005a60| 61 74 69 6f 2e 20 20 54 | 68 65 20 73 74 65 70 20 |atio. T|he step |
|00005a70| 63 6f 6e 73 74 61 6e 74 | 73 20 61 72 65 20 0d 09 |constant|s are ..|
|00005a80| 09 7a 65 72 6f 65 64 20 | 74 6f 20 73 74 61 72 74 |.zeroed |to start|
|00005a90| 20 74 68 65 20 66 72 61 | 63 74 61 6c 20 61 6e 65 | the fra|ctal ane|
|00005aa0| 77 2e 20 20 41 6c 6c 6f | 63 61 74 65 73 20 6e 6f |w. Allo|cates no|
|00005ab0| 20 6d 65 6d 6f 72 79 2e | 20 7d 0d 50 52 4f 43 45 | memory.| }.PROCE|
|00005ac0| 44 55 52 45 20 20 54 46 | 72 61 63 41 70 70 44 6f |DURE TF|racAppDo|
|00005ad0| 63 75 6d 65 6e 74 2e 53 | 65 74 55 70 43 6f 6e 73 |cument.S|etUpCons|
|00005ae0| 74 61 6e 74 73 3b 0d 0d | 42 45 47 49 4e 0d 09 57 |tants;..|BEGIN..W|
|00005af0| 49 54 48 20 66 46 72 61 | 63 48 65 61 64 65 72 20 |ITH fFra|cHeader |
|00005b00| 20 44 4f 20 20 42 45 47 | 49 4e 0d 09 09 7b 20 53 | DO BEG|IN...{ S|
|00005b10| 65 74 20 75 70 20 74 68 | 65 20 69 74 65 72 61 74 |et up th|e iterat|
|00005b20| 69 6f 6e 73 20 62 79 20 | 63 61 6c 63 75 6c 61 74 |ions by |calculat|
|00005b30| 69 6e 67 20 75 70 20 74 | 68 65 20 73 74 65 70 20 |ing up t|he step |
|00005b40| 63 6f 6e 73 74 61 6e 74 | 73 2c 20 61 6e 64 20 74 |constant|s, and t|
|00005b50| 68 65 20 0d 09 09 09 65 | 64 67 65 73 20 6f 66 20 |he ....e|dges of |
|00005b60| 74 68 65 20 76 69 65 77 | 20 61 72 65 61 20 69 6e |the view| area in|
|00005b70| 20 70 69 78 65 6c 73 2e | 20 7d 0d 09 0d 09 09 70 | pixels.| }.....p|
|00005b80| 6c 6f 74 57 69 64 74 68 | 20 3a 3d 20 28 63 61 6c |lotWidth| := (cal|
|00005b90| 63 52 65 63 74 2e 52 69 | 67 68 74 20 2d 20 63 61 |cRect.Ri|ght - ca|
|00005ba0| 6c 63 52 65 63 74 2e 4c | 65 66 74 29 3b 0d 09 09 |lcRect.L|eft);...|
|00005bb0| 70 6c 6f 74 48 65 69 67 | 68 74 20 3a 3d 20 28 63 |plotHeig|ht := (c|
|00005bc0| 61 6c 63 52 65 63 74 2e | 42 6f 74 74 6f 6d 20 2d |alcRect.|Bottom -|
|00005bd0| 20 63 61 6c 63 52 65 63 | 74 2e 54 6f 70 29 3b 09 | calcRec|t.Top);.|
|00005be0| 09 0d 09 09 64 65 6c 74 | 61 50 20 3a 3d 20 28 72 |....delt|aP := (r|
|00005bf0| 65 61 6c 4d 61 78 2d 72 | 65 61 6c 4d 69 6e 29 2f |ealMax-r|ealMin)/|
|00005c00| 28 70 6c 6f 74 48 65 69 | 67 68 74 2d 31 29 3b 0d |(plotHei|ght-1);.|
|00005c10| 09 09 64 65 6c 74 61 51 | 20 3a 3d 20 28 69 6d 61 |..deltaQ| := (ima|
|00005c20| 67 4d 61 78 2d 69 6d 61 | 67 4d 69 6e 29 2f 28 70 |gMax-ima|gMin)/(p|
|00005c30| 6c 6f 74 57 69 64 74 68 | 2d 31 29 3b 0d 09 0d 09 |lotWidth|-1);....|
|00005c40| 09 7b 20 46 6f 72 63 65 | 20 61 73 70 65 63 74 20 |.{ Force| aspect |
|00005c50| 72 61 74 69 6f 20 31 3a | 31 2c 20 6d 61 6b 69 6e |ratio 1:|1, makin|
|00005c60| 67 20 64 65 6c 74 61 20 | 73 6d 61 6c 6c 65 73 74 |g delta |smallest|
|00005c70| 20 6f 66 20 74 77 6f 2e | 20 20 54 68 69 73 20 65 | of two.| This e|
|00005c80| 66 66 65 63 74 69 76 65 | 6c 79 20 67 72 6f 77 73 |ffective|ly grows|
|00005c90| 0d 09 09 09 6f 6e 65 20 | 73 69 64 65 20 6f 72 20 |....one |side or |
|00005ca0| 74 68 65 20 6f 74 68 65 | 72 20 6f 75 74 2c 20 6c |the othe|r out, l|
|00005cb0| 69 6b 65 20 72 4d 61 78 | 2f 69 4d 61 78 20 62 65 |ike rMax|/iMax be|
|00005cc0| 63 6f 6d 69 6e 67 20 62 | 69 67 67 65 72 20 6e 75 |coming b|igger nu|
|00005cd0| 6d 62 65 72 2e 20 7d 0d | 09 09 49 46 20 64 65 6c |mber. }.|..IF del|
|00005ce0| 74 61 50 20 3e 20 64 65 | 6c 74 61 51 20 20 54 48 |taP > de|ltaQ TH|
|00005cf0| 45 4e 20 20 42 45 47 49 | 4e 0d 09 09 09 64 65 6c |EN BEGI|N....del|
|00005d00| 74 61 51 20 3a 3d 20 64 | 65 6c 74 61 50 3b 0d 09 |taQ := d|eltaP;..|
|00005d10| 09 09 69 6d 61 67 4d 61 | 78 20 3a 3d 20 64 65 6c |..imagMa|x := del|
|00005d20| 74 61 51 20 2a 20 28 70 | 6c 6f 74 57 69 64 74 68 |taQ * (p|lotWidth|
|00005d30| 2d 31 29 20 2b 20 69 6d | 61 67 4d 69 6e 3b 20 09 |-1) + im|agMin; .|
|00005d40| 7b 20 6e 65 77 20 6d 61 | 78 69 6d 75 6d 20 66 6f |{ new ma|ximum fo|
|00005d50| 72 20 71 20 7d 0d 09 09 | 45 4e 44 20 20 20 7b 20 |r q }...|END { |
|00005d60| 67 72 6f 77 20 74 68 65 | 20 71 20 73 69 64 65 20 |grow the| q side |
|00005d70| 7d 0d 09 09 45 4c 53 45 | 20 20 42 45 47 49 4e 0d |}...ELSE| BEGIN.|
|00005d80| 09 09 09 64 65 6c 74 61 | 50 20 3a 3d 20 64 65 6c |...delta|P := del|
|00005d90| 74 61 51 3b 0d 09 09 09 | 72 65 61 6c 4d 61 78 20 |taQ;....|realMax |
|00005da0| 3a 3d 20 64 65 6c 74 61 | 50 20 2a 20 28 70 6c 6f |:= delta|P * (plo|
|00005db0| 74 48 65 69 67 68 74 2d | 31 29 20 2b 20 72 65 61 |tHeight-|1) + rea|
|00005dc0| 6c 4d 69 6e 3b 20 09 09 | 7b 20 6e 65 77 20 6d 61 |lMin; ..|{ new ma|
|00005dd0| 78 69 6d 75 6d 20 66 6f | 72 20 70 20 7d 0d 09 09 |ximum fo|r p }...|
|00005de0| 45 4e 44 3b 20 20 7b 20 | 67 72 6f 77 20 74 68 65 |END; { |grow the|
|00005df0| 20 70 20 73 69 64 65 20 | 7d 0d 09 0d 09 09 7b 20 | p side |}.....{ |
|00005e00| 4e 6f 77 20 73 74 61 72 | 74 20 74 68 65 20 63 6f |Now star|t the co|
|00005e10| 75 6e 74 65 72 73 20 61 | 74 20 7a 65 72 6f 2c 20 |unters a|t zero, |
|00005e20| 61 73 20 74 68 65 20 65 | 64 67 65 20 6f 66 20 74 |as the e|dge of t|
|00005e30| 68 65 20 61 72 65 61 20 | 74 6f 20 63 61 6c 63 2e |he area |to calc.|
|00005e40| 20 7d 0d 09 09 63 75 72 | 43 6f 6c 20 3a 3d 20 30 | }...cur|Col := 0|
|00005e50| 3b 20 20 63 75 72 52 6f | 77 20 3a 3d 20 30 3b 0d |; curRo|w := 0;.|
|00005e60| 09 09 0d 09 09 7b 20 41 | 6e 64 20 74 68 65 20 65 |.....{ A|nd the e|
|00005e70| 6c 61 70 73 65 64 20 74 | 69 6d 65 20 69 73 20 7a |lapsed t|ime is z|
|00005e80| 65 72 6f 20 6f 66 20 63 | 6f 75 72 73 65 2c 20 73 |ero of c|ourse, s|
|00005e90| 69 6e 63 65 20 77 65 20 | 61 72 65 20 6a 75 73 74 |ince we |are just|
|00005ea0| 20 73 74 61 72 74 69 6e | 67 2e 20 7d 0d 09 09 65 | startin|g. }...e|
|00005eb0| 6c 61 70 73 65 64 54 69 | 6d 65 20 3a 3d 20 30 3b |lapsedTi|me := 0;|
|00005ec0| 0d 09 45 4e 44 3b 09 09 | 7b 20 57 49 54 48 20 66 |..END;..|{ WITH f|
|00005ed0| 72 61 63 74 61 6c 44 6f | 63 75 6d 65 6e 74 20 7d |ractalDo|cument }|
|00005ee0| 0d 45 4e 44 3b 09 09 7b | 20 53 65 74 55 70 43 6f |.END;..{| SetUpCo|
|00005ef0| 6e 73 74 61 6e 74 73 20 | 7d 0d 0d 0d 09 7b 20 55 |nstants |}....{ U|
|00005f00| 74 69 6c 69 74 79 20 6d | 65 74 68 6f 64 20 74 6f |tility m|ethod to|
|00005f10| 20 62 75 69 6c 64 20 74 | 68 65 20 6f 66 66 73 63 | build t|he offsc|
|00005f20| 72 65 65 6e 20 67 44 65 | 76 69 63 65 20 61 6e 64 |reen gDe|vice and|
|00005f30| 20 6f 66 66 73 63 72 65 | 65 6e 20 50 6f 72 74 20 | offscre|en Port |
|00005f40| 74 68 61 74 20 69 73 20 | 75 73 65 64 20 66 6f 72 |that is |used for|
|00005f50| 0d 09 09 74 68 65 20 64 | 6f 63 75 6d 65 6e 74 20 |...the d|ocument |
|00005f60| 64 61 74 61 2e 20 20 54 | 68 69 73 20 68 61 70 70 |data. T|his happ|
|00005f70| 79 20 66 65 6c 6c 6f 77 | 20 77 69 6c 6c 20 61 6c |y fellow| will al|
|00005f80| 6c 6f 63 61 74 65 20 68 | 75 67 65 20 6f 6c 64 20 |locate h|uge old |
|00005f90| 68 75 6e 6b 73 20 6f 66 | 20 52 61 6d 20 66 6f 72 |hunks of| Ram for|
|00005fa0| 0d 09 09 74 68 65 20 64 | 6f 63 75 6d 65 6e 74 20 |...the d|ocument |
|00005fb0| 61 6e 64 20 73 65 74 20 | 75 70 20 74 68 65 20 69 |and set |up the i|
|00005fc0| 6e 69 74 69 61 6c 20 73 | 74 61 74 65 20 6f 66 20 |nitial s|tate of |
|00005fd0| 74 68 65 20 67 44 65 76 | 69 63 65 20 77 69 74 68 |the gDev|ice with|
|00005fe0| 20 74 68 65 20 72 69 67 | 68 74 20 63 6f 6c 6f 72 | the rig|ht color|
|00005ff0| 0d 09 09 74 61 62 6c 65 | 20 61 6e 64 20 73 6f 20 |...table| and so |
|00006000| 6f 6e 2e 20 20 54 68 69 | 73 20 69 73 20 64 6f 6e |on. Thi|s is don|
|00006010| 65 20 61 73 20 61 20 75 | 74 69 6c 69 74 79 20 72 |e as a u|tility r|
|00006020| 6f 75 74 69 6e 65 20 73 | 69 6e 63 65 20 77 65 20 |outine s|ince we |
|00006030| 64 6f 6e 27 74 20 6b 6e | 6f 77 20 69 6e 20 61 64 |don't kn|ow in ad|
|00006040| 76 61 6e 63 65 0d 09 09 | 68 6f 77 20 62 69 67 20 |vance...|how big |
|00006050| 74 68 65 20 67 44 65 76 | 69 63 65 20 77 69 6c 6c |the gDev|ice will|
|00006060| 20 62 65 2c 20 61 6e 64 | 20 77 65 20 77 61 6e 74 | be, and| we want|
|00006070| 20 74 6f 20 6d 61 6b 65 | 20 69 74 20 61 73 20 62 | to make| it as b|
|00006080| 69 67 20 61 73 20 69 74 | 20 77 61 73 20 77 68 65 |ig as it| was whe|
|00006090| 6e 20 74 68 65 0d 09 09 | 64 6f 63 75 6d 65 6e 74 |n the...|document|
|000060a0| 20 77 61 73 20 73 61 76 | 65 64 2c 20 72 65 61 64 | was sav|ed, read|
|000060b0| 69 6e 67 20 69 74 20 66 | 72 6f 6d 20 74 68 65 20 |ing it f|rom the |
|000060c0| 68 65 61 64 65 72 2e 20 | 20 49 66 20 77 65 20 61 |header. | If we a|
|000060d0| 72 65 20 6d 61 6b 69 6e | 67 20 61 20 6e 65 77 20 |re makin|g a new |
|000060e0| 0d 09 09 64 6f 63 75 6d | 65 6e 74 2c 20 74 68 65 |...docum|ent, the|
|000060f0| 20 44 6f 49 6e 69 74 69 | 61 6c 53 74 61 74 65 20 | DoIniti|alState |
|00006100| 77 69 6c 6c 20 63 61 6c | 6c 20 77 69 74 68 20 74 |will cal|l with t|
|00006110| 68 65 20 73 63 72 65 65 | 6e 20 72 65 63 74 61 6e |he scree|n rectan|
|00006120| 67 6c 65 2e 20 7d 0d 09 | 09 0d 28 2a 20 50 52 4f |gle. }..|..(* PRO|
|00006130| 43 45 44 55 52 45 20 20 | 54 46 72 61 63 41 70 70 |CEDURE |TFracApp|
|00006140| 44 6f 63 75 6d 65 6e 74 | 2e 42 75 69 6c 64 4f 66 |Document|.BuildOf|
|00006150| 66 57 6f 72 6c 64 20 28 | 73 69 7a 65 4f 66 44 6f |fWorld (|sizeOfDo|
|00006160| 63 3a 20 52 65 63 74 29 | 3b 0d 0d 56 41 52 09 09 |c: Rect)|;..VAR..|
|00006170| 6f 6c 64 50 65 72 6d 3a | 20 09 09 09 42 6f 6f 6c |oldPerm:| ...Bool|
|00006180| 65 61 6e 3b 0d 09 09 09 | 64 75 6d 6d 79 3a 09 09 |ean;....|dummy:..|
|00006190| 09 09 42 6f 6f 6c 65 61 | 6e 3b 0d 09 09 09 64 6f |..Boolea|n;....do|
|000061a0| 63 57 2c 20 64 6f 63 48 | 3a 09 09 4c 6f 6e 67 49 |cW, docH|:..LongI|
|000061b0| 6e 74 3b 0d 09 09 09 66 | 69 3a 20 09 09 09 09 09 |nt;....f|i: .....|
|000061c0| 46 61 69 6c 49 6e 66 6f | 3b 0d 09 09 09 63 75 72 |FailInfo|;....cur|
|000061d0| 72 44 65 76 69 63 65 3a | 09 09 47 44 48 61 6e 64 |rDevice:|..GDHand|
|000061e0| 6c 65 3b 0d 09 09 09 63 | 75 72 72 50 6f 72 74 3a |le;....c|urrPort:|
|000061f0| 09 09 09 47 72 61 66 50 | 74 72 3b 0d 09 09 09 45 |...GrafP|tr;....E|
|00006200| 72 72 79 3a 09 09 09 09 | 09 4f 53 45 72 72 3b 0d |rry:....|.OSErr;.|
|00006210| 09 09 09 09 0d 09 09 7b | 20 54 68 69 73 20 69 73 |.......{| This is|
|00006220| 20 74 68 65 20 65 72 72 | 6f 72 20 68 61 6e 64 6c | the err|or handl|
|00006230| 65 72 20 66 6f 72 20 77 | 68 65 6e 20 77 65 20 67 |er for w|hen we g|
|00006240| 65 74 20 65 72 72 6f 72 | 73 20 77 68 69 6c 65 20 |et error|s while |
|00006250| 6d 61 6b 69 6e 67 20 61 | 20 6e 65 77 20 64 6f 63 |making a| new doc|
|00006260| 75 6d 65 6e 74 2c 0d 09 | 09 09 74 79 70 69 63 61 |ument,..|..typica|
|00006270| 6c 6c 79 20 6c 69 6b 65 | 20 72 75 6e 6e 69 6e 67 |lly like| running|
|00006280| 20 6f 75 74 20 6f 66 20 | 6d 65 6d 6f 72 79 2e 20 | out of |memory. |
|00006290| 20 53 69 6e 63 65 20 74 | 68 65 20 46 72 65 65 20 | Since t|he Free |
|000062a0| 6d 65 74 68 6f 64 20 66 | 6f 72 20 74 68 65 20 64 |method f|or the d|
|000062b0| 6f 63 75 6d 65 6e 74 0d | 09 09 09 77 69 6c 6c 20 |ocument.|...will |
|000062c0| 67 65 74 20 63 61 6c 6c | 65 64 20 77 65 20 64 6f |get call|ed we do|
|000062d0| 6e 27 74 20 68 61 76 65 | 20 74 6f 20 63 68 75 63 |n't have| to chuc|
|000062e0| 6b 20 74 68 65 20 74 68 | 69 6e 67 73 20 74 68 61 |k the th|ings tha|
|000062f0| 74 20 6e 6f 72 6d 61 6c | 6c 79 20 67 65 74 20 6b |t normal|ly get k|
|00006300| 69 6c 6c 65 64 2e 20 0d | 09 09 09 4a 75 73 74 20 |illed. .|...Just |
|00006310| 73 65 74 20 61 6c 6c 6f | 63 61 74 69 6f 6e 20 62 |set allo|cation b|
|00006320| 61 63 6b 20 74 6f 20 6e | 6f 72 6d 61 6c 20 28 66 |ack to n|ormal (f|
|00006330| 6f 72 20 74 68 65 20 65 | 72 72 6f 72 20 6d 65 73 |or the e|rror mes|
|00006340| 73 61 67 65 20 69 74 73 | 65 6c 66 29 2c 20 74 68 |sage its|elf), th|
|00006350| 65 20 64 72 61 77 69 6e | 67 20 0d 09 09 09 65 6e |e drawin|g ....en|
|00006360| 76 69 72 6f 6e 6d 65 6e | 74 20 62 61 63 6b 20 74 |vironmen|t back t|
|00006370| 6f 20 6e 6f 72 6d 61 6c | 20 61 6e 64 20 72 65 74 |o normal| and ret|
|00006380| 75 72 6e 2e 20 20 7d 0d | 09 50 52 4f 43 45 44 55 |urn. }.|.PROCEDU|
|00006390| 52 45 20 44 65 61 74 68 | 44 6f 63 75 6d 65 6e 74 |RE Death|Document|
|000063a0| 20 28 65 72 72 6f 72 3a | 20 4f 53 45 72 72 3b 20 | (error:| OSErr; |
|000063b0| 6d 65 73 73 61 67 65 3a | 20 4c 4f 4e 47 49 4e 54 |message:| LONGINT|
|000063c0| 29 3b 0d 09 0d 09 42 45 | 47 49 4e 0d 09 09 6f 6c |);....BE|GIN...ol|
|000063d0| 64 50 65 72 6d 20 3a 3d | 20 50 65 72 6d 41 6c 6c |dPerm :=| PermAll|
|000063e0| 6f 63 61 74 69 6f 6e 20 | 28 6f 6c 64 50 65 72 6d |ocation |(oldPerm|
|000063f0| 29 3b 09 7b 20 53 65 74 | 20 6d 65 6d 6f 72 79 20 |);.{ Set| memory |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.